Skip to content

Commit

Permalink
Fix golint issue in labels.go (prometheus#7730)
Browse files Browse the repository at this point in the history
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
  • Loading branch information
Guangwen Feng authored Aug 3, 2020
1 parent ac677ed commit e6f2b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/labels/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (ls Labels) WithLabels(names ...string) Labels {
return ret
}

// WithLabels returns a new labels.Labels from ls that contains labels not matching names.
// WithoutLabels returns a new labels.Labels from ls that contains labels not matching names.
// 'names' have to be sorted in ascending order.
func (ls Labels) WithoutLabels(names ...string) Labels {
ret := make([]Label, 0, len(ls))
Expand Down

0 comments on commit e6f2b8a

Please sign in to comment.