mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-06 06:07:11 +02:00
Add docstring to labels_common.go Contains function
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
parent
a821f0df45
commit
7a82d77c4c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user