From e6f2b8ad602bafa8cb34c68bf2fb9476ab9ad084 Mon Sep 17 00:00:00 2001 From: Guangwen Feng Date: Mon, 3 Aug 2020 18:25:23 +0800 Subject: [PATCH] Fix golint issue in labels.go (#7730) Signed-off-by: Guangwen Feng --- pkg/labels/labels.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/labels/labels.go b/pkg/labels/labels.go index 5278cab79..0b7f6f7f3 100644 --- a/pkg/labels/labels.go +++ b/pkg/labels/labels.go @@ -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))