golint: Fix comment on exported function NewDevstatCollector.
parent
b73af72853
commit
6720cfdbfe
|
@ -102,8 +102,7 @@ func init() {
|
||||||
Factories["devstat"] = NewDevstatCollector
|
Factories["devstat"] = NewDevstatCollector
|
||||||
}
|
}
|
||||||
|
|
||||||
// Takes a prometheus registry and returns a new Collector exposing
|
// NewDevstatCollector returns a new Collector exposing Device stats.
|
||||||
// Device stats.
|
|
||||||
func NewDevstatCollector() (Collector, error) {
|
func NewDevstatCollector() (Collector, error) {
|
||||||
return &devstatCollector{
|
return &devstatCollector{
|
||||||
bytesDesc: prometheus.NewDesc(
|
bytesDesc: prometheus.NewDesc(
|
||||||
|
|
|
@ -48,8 +48,7 @@ func init() {
|
||||||
Factories["devstat"] = NewDevstatCollector
|
Factories["devstat"] = NewDevstatCollector
|
||||||
}
|
}
|
||||||
|
|
||||||
// Takes a prometheus registry and returns a new Collector exposing
|
// NewDevstatCollector returns a new Collector exposing Device stats.
|
||||||
// Device stats.
|
|
||||||
func NewDevstatCollector() (Collector, error) {
|
func NewDevstatCollector() (Collector, error) {
|
||||||
return &devstatCollector{
|
return &devstatCollector{
|
||||||
devinfo: &C.struct_devinfo{},
|
devinfo: &C.struct_devinfo{},
|
||||||
|
|
Loading…
Reference in New Issue