diff --git a/internal/port/co_portspec.go b/internal/port/co_portspec.go index bddec971..0a85b77c 100644 --- a/internal/port/co_portspec.go +++ b/internal/port/co_portspec.go @@ -23,7 +23,7 @@ func (c ContainerPortSpecs) Dump() string { return strings.Join(ss, "\n") } -// InSpecs checks if given port matches a spec. +// MatchSpec checks if given port matches a spec. func (c ContainerPortSpecs) MatchSpec(s string) bool { // Skip validation if No port are exposed or no container port spec. if len(c) == 0 || !strings.Contains(s, "::") { diff --git a/internal/view/cmd/interpreter.go b/internal/view/cmd/interpreter.go index 22bf0fca..89f2783b 100644 --- a/internal/view/cmd/interpreter.go +++ b/internal/view/cmd/interpreter.go @@ -196,7 +196,7 @@ func (c *Interpreter) RBACArgs() (subject, verb string, ok bool) { return } -// XRayArgs return the gvr and ns if any. +// XrayArgs return the gvr and ns if any. func (c *Interpreter) XrayArgs() (cmd, namespace string, ok bool) { if !c.IsXrayCmd() { return