chore: make function comment match function name (#3408)

Signed-off-by: yingshanghuangqiao <yingshanghuangqiao@foxmail.com>
mine
yingshanghuangqiao 2025-07-16 16:17:10 +02:00 committed by GitHub
parent c2f1316680
commit 6d756d593d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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, "::") {

View File

@ -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