From 9a8cb329e8ad066cbf289d2dcd8409cb2c7b5486 Mon Sep 17 00:00:00 2001 From: Zach Stone Date: Fri, 25 Mar 2022 20:06:41 +0100 Subject: [PATCH] Comments Signed-off-by: Zach Stone --- prometheus/vec.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheus/vec.go b/prometheus/vec.go index 56172de4a..3d5f79793 100644 --- a/prometheus/vec.go +++ b/prometheus/vec.go @@ -80,7 +80,7 @@ func (m *MetricVec) DeleteLabelValues(lvs ...string) bool { return m.metricMap.deleteByHashWithLabelValues(h, lvs, m.curry) } -// DeletePartialMatchLabelValues removes the metric where the variable labels +// DeletePartialMatchLabelValues deletes all metrics where the variable labels // contain all of the values passed. The order of the passed values does not matter. // It returns the number of metrics deleted. @@ -109,7 +109,7 @@ func (m *MetricVec) Delete(labels Labels) bool { return m.metricMap.deleteByHashWithLabels(h, labels, m.curry) } -// DeletePartialMatch deletes the metric where the variable labels contains all of those +// DeletePartialMatch deletes all metrics where the variable labels contain all of those // passed in as labels. The order of the labels does not matter. // It returns the number of metrics deleted.