golint: Fix comment on exported function NewDevstatCollector.

This commit is contained in:
Karsten Weiss 2017-05-14 13:16:26 +02:00
parent b73af72853
commit 6720cfdbfe
2 changed files with 2 additions and 4 deletions

View file

@ -102,8 +102,7 @@ func init() {
Factories["devstat"] = NewDevstatCollector
}
// Takes a prometheus registry and returns a new Collector exposing
// Device stats.
// NewDevstatCollector returns a new Collector exposing Device stats.
func NewDevstatCollector() (Collector, error) {
return &devstatCollector{
bytesDesc: prometheus.NewDesc(

View file

@ -48,8 +48,7 @@ func init() {
Factories["devstat"] = NewDevstatCollector
}
// Takes a prometheus registry and returns a new Collector exposing
// Device stats.
// NewDevstatCollector returns a new Collector exposing Device stats.
func NewDevstatCollector() (Collector, error) {
return &devstatCollector{
devinfo: &C.struct_devinfo{},