Skip to content

Commit 6d756d5

Browse files
chore: make function comment match function name (#3408)
Signed-off-by: yingshanghuangqiao <[email protected]>
1 parent c2f1316 commit 6d756d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/port/co_portspec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func (c ContainerPortSpecs) Dump() string {
2323
return strings.Join(ss, "\n")
2424
}
2525

26-
// InSpecs checks if given port matches a spec.
26+
// MatchSpec checks if given port matches a spec.
2727
func (c ContainerPortSpecs) MatchSpec(s string) bool {
2828
// Skip validation if No port are exposed or no container port spec.
2929
if len(c) == 0 || !strings.Contains(s, "::") {

internal/view/cmd/interpreter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func (c *Interpreter) RBACArgs() (subject, verb string, ok bool) {
196196
return
197197
}
198198

199-
// XRayArgs return the gvr and ns if any.
199+
// XrayArgs return the gvr and ns if any.
200200
func (c *Interpreter) XrayArgs() (cmd, namespace string, ok bool) {
201201
if !c.IsXrayCmd() {
202202
return

0 commit comments

Comments
 (0)