From 6d756d593d492fc68b753c89dfe37815779f832e Mon Sep 17 00:00:00 2001 From: yingshanghuangqiao Date: Wed, 16 Jul 2025 16:17:10 +0200 Subject: [PATCH] chore: make function comment match function name (#3408) Signed-off-by: yingshanghuangqiao --- internal/port/co_portspec.go | 2 +- internal/view/cmd/interpreter.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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