Add docstring to labels_common.go Contains function

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
György Krajcsovits 2025-08-05 15:18:58 +02:00
parent a821f0df45
commit 7a82d77c4c
No known key found for this signature in database
GPG Key ID: 47A8F9CE80FD7C7F

View File

@ -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 {