Browse Source

chore: fix mismatched function names in godoc

Signed-off-by: George Ma <mayangang@outlook.com>
George Ma 1 year ago
parent
commit
14a8fac092
2 changed files with 2 additions and 2 deletions
  1. 1 1
      libnetwork/drivers/remote/driver.go
  2. 1 1
      profiles/apparmor/apparmor.go

+ 1 - 1
libnetwork/drivers/remote/driver.go

@@ -406,7 +406,7 @@ func parseStaticRoutes(r api.JoinResponse) ([]*types.StaticRoute, error) {
 	return routes, nil
 }
 
-// parseInterfaces validates all the parameters of an Interface and returns them.
+// parseInterface validates all the parameters of an Interface and returns them.
 func parseInterface(r api.CreateEndpointResponse) (*api.Interface, error) {
 	var outIf *api.Interface
 

+ 1 - 1
profiles/apparmor/apparmor.go

@@ -48,7 +48,7 @@ func (p *profileData) generateDefault(out io.Writer) error {
 	return compiled.Execute(out, p)
 }
 
-// macrosExists checks if the passed macro exists.
+// macroExists checks if the passed macro exists.
 func macroExists(m string) bool {
 	_, err := os.Stat(path.Join(profileDirectory, m))
 	return err == nil