From cd97fc649fdb2083cd0ccf337c43a483b1e181ec Mon Sep 17 00:00:00 2001 From: Em Sharnoff Date: Mon, 2 Dec 2024 21:22:41 -0800 Subject: [PATCH] util: Fix comment in NamespacedName formatter It wasn't correct; the separator is '/', not ':'. --- pkg/util/namespacedname.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/namespacedname.go b/pkg/util/namespacedname.go index 95cc4ace2..db3af1482 100644 --- a/pkg/util/namespacedname.go +++ b/pkg/util/namespacedname.go @@ -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))