labels: improve comment on Builder.Set

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
Bryan Boreham 2022-12-13 19:02:25 +00:00
parent a19b369f9e
commit ea7345a09c

View file

@ -468,7 +468,7 @@ Outer:
return b return b
} }
// Set the name/value pair as a label. // Set the name/value pair as a label. A value of "" means delete that label.
func (b *Builder) Set(n, v string) *Builder { func (b *Builder) Set(n, v string) *Builder {
if v == "" { if v == "" {
// Empty labels are the same as missing labels. // Empty labels are the same as missing labels.