mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-01-23 11:44:29 -08:00
golint: Fix NewStatCollector() doc string.
This commit is contained in:
parent
b3e7420a27
commit
bca09abf1c
|
@ -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(
|
||||
|
|
|
@ -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…
Reference in a new issue