From 7a82d77c4c99f86863fc06a001cc50f35586a60b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gy=C3=B6rgy=20Krajcsovits?= Date: Tue, 5 Aug 2025 15:18:58 +0200 Subject: [PATCH] Add docstring to labels_common.go Contains function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: György Krajcsovits --- model/labels/labels_common.go | 1 + 1 file changed, 1 insertion(+) diff --git a/model/labels/labels_common.go b/model/labels/labels_common.go index a6945a0cae..4d5cee7ed1 100644 --- a/model/labels/labels_common.go +++ b/model/labels/labels_common.go @@ -224,6 +224,7 @@ func (b *Builder) Range(f func(l Label)) { } } +// Contains returns true if the label name n is present in s, otherwise false. func Contains(s []Label, n string) bool { for _, a := range s { if a.Name == n {