From 14a8fac0921dd8a6c36e378f6b5139a06e878f64 Mon Sep 17 00:00:00 2001 From: George Ma Date: Fri, 22 Mar 2024 14:30:22 +0800 Subject: [PATCH] chore: fix mismatched function names in godoc Signed-off-by: George Ma --- libnetwork/drivers/remote/driver.go | 2 +- profiles/apparmor/apparmor.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libnetwork/drivers/remote/driver.go b/libnetwork/drivers/remote/driver.go index a4d581c9fe..f7e83a709c 100644 --- a/libnetwork/drivers/remote/driver.go +++ b/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 diff --git a/profiles/apparmor/apparmor.go b/profiles/apparmor/apparmor.go index 1edfc53002..277c853ebe 100644 --- a/profiles/apparmor/apparmor.go +++ b/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