From ed379b7d99f8b8a6733e87217cdaa6c9ad0a604a Mon Sep 17 00:00:00 2001 From: beorn7 Date: Wed, 12 Jul 2017 15:13:09 +0200 Subject: [PATCH] Remove remaining references to MetricVec from doc comments MetricVec is un-experted by now. godoc handles that correctly by showing the methods of the embedded un-exported metricVec with the exported type (CounterVec, SummaryVec, ...) that embeds metricVec. --- prometheus/counter.go | 3 --- prometheus/vec.go | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/prometheus/counter.go b/prometheus/counter.go index 44b48c5..273db5f 100644 --- a/prometheus/counter.go +++ b/prometheus/counter.go @@ -70,9 +70,6 @@ func (c *counter) Add(v float64) { // if you want to count the same thing partitioned by various dimensions // (e.g. number of HTTP requests, partitioned by response code and // method). Create instances with NewCounterVec. -// -// CounterVec embeds MetricVec. See there for a full list of methods with -// detailed documentation. type CounterVec struct { *metricVec } diff --git a/prometheus/vec.go b/prometheus/vec.go index c493b24..40d92b7 100644 --- a/prometheus/vec.go +++ b/prometheus/vec.go @@ -35,8 +35,7 @@ type metricVec struct { hashAddByte func(h uint64, b byte) uint64 } -// newMetricVec returns an initialized MetricVec. The concrete value is -// returned for embedding into another struct. +// newMetricVec returns an initialized metricVec. func newMetricVec(desc *Desc, newMetric func(lvs ...string) Metric) *metricVec { return &metricVec{ children: map[uint64][]metricWithLabelValues{},