golint: Fix NewStatCollector() doc string.

This commit is contained in:
Karsten Weiss 2017-05-14 13:32:35 +02:00
parent b3e7420a27
commit bca09abf1c
2 changed files with 2 additions and 4 deletions

View File

@ -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(

View File

@ -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(