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(