From d038ab96c0c7b9cd217a39072febd610bcdf1fd8 Mon Sep 17 00:00:00 2001 From: oftenoccur <166520808+oftenoccur@users.noreply.github.com> Date: Thu, 11 Apr 2024 20:53:09 +0800 Subject: [PATCH] chore: fix function name in comment (#1497) Signed-off-by: oftenoccur --- prometheus/vec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus/vec.go b/prometheus/vec.go index 955cfd59f..2c808eece 100644 --- a/prometheus/vec.go +++ b/prometheus/vec.go @@ -507,7 +507,7 @@ func (m *metricMap) getOrCreateMetricWithLabelValues( return metric } -// getOrCreateMetricWithLabelValues retrieves the metric by hash and label value +// getOrCreateMetricWithLabels retrieves the metric by hash and label value // or creates it and returns the new one. // // This function holds the mutex.