Browse Source

golint: Fix NewStatCollector() doc string.

pull/583/head
Karsten Weiss 8 years ago
parent
commit
bca09abf1c
  1. 3
      collector/cpu_dragonfly.go
  2. 3
      collector/cpu_freebsd.go

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

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

Loading…
Cancel
Save