mirror of
https://github.com/prometheus/prometheus
synced 2026-05-01 07:30:30 +08:00
labels: improve comment on Builder.Set
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
@@ -468,7 +468,7 @@ Outer:
|
||||
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 {
|
||||
if v == "" {
|
||||
// Empty labels are the same as missing labels.
|
||||
|
||||
Reference in New Issue
Block a user