From bca09abf1c50cf39d6b57c693c7216857e7214cc Mon Sep 17 00:00:00 2001 From: Karsten Weiss Date: Sun, 14 May 2017 13:32:35 +0200 Subject: [PATCH] golint: Fix NewStatCollector() doc string. --- collector/cpu_dragonfly.go | 3 +-- collector/cpu_freebsd.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/collector/cpu_dragonfly.go b/collector/cpu_dragonfly.go index db690b0a..a4961117 100644 --- a/collector/cpu_dragonfly.go +++ b/collector/cpu_dragonfly.go @@ -91,8 +91,7 @@ func init() { Factories["cpu"] = NewStatCollector } -// Takes a prometheus registry and returns a new Collector exposing -// CPU stats. +// NewStatCollector returns a new Collector exposing CPU stats. func NewStatCollector() (Collector, error) { return &statCollector{ cpu: prometheus.NewDesc( diff --git a/collector/cpu_freebsd.go b/collector/cpu_freebsd.go index 72dc1f5d..e5d0bee7 100644 --- a/collector/cpu_freebsd.go +++ b/collector/cpu_freebsd.go @@ -89,8 +89,7 @@ func init() { Factories["cpu"] = NewStatCollector } -// Takes a prometheus registry and returns a new Collector exposing -// CPU stats. +// NewStatCollector returns a new Collector exposing CPU stats. func NewStatCollector() (Collector, error) { return &statCollector{ cpu: typedDesc{prometheus.NewDesc(