Skip to content

Commit

Permalink
util: Fix comment in NamespacedName formatter
Browse files Browse the repository at this point in the history
It wasn't correct; the separator is '/', not ':'.
  • Loading branch information
sharnoff committed Dec 3, 2024
1 parent 3086c59 commit cd97fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/namespacedname.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (n NamespacedName) Format(state fmt.State, verb rune) {
// Go syntax representation, e.g. `util.NamespacedName{Namespace:"foo", Name:"bar"}`
_, _ = state.Write([]byte(fmt.Sprintf("util.NamespacedName{Namespace:%q, Name:%q}", n.Namespace, n.Name)))
default:
// Pretty-printed representation, e.g. `foo:bar`
// Pretty-printed representation, e.g. `foo/bar`
_, _ = state.Write([]byte(n.Namespace))
_, _ = state.Write([]byte(string(Separator)))
_, _ = state.Write([]byte(n.Name))
Expand Down

0 comments on commit cd97fc6

Please sign in to comment.