forked from mirror/client_golang
Fix typo in doc string
This commit is contained in:
parent
28be15864e
commit
c1e8a41238
|
@ -138,8 +138,8 @@ func RegisterOrGet(m Collector) (Collector, error) {
|
||||||
return defRegistry.RegisterOrGet(m)
|
return defRegistry.RegisterOrGet(m)
|
||||||
}
|
}
|
||||||
|
|
||||||
// MustRegisterOrGet works like Register but panics where RegisterOrGet would
|
// MustRegisterOrGet works like RegisterOrGet but panics where RegisterOrGet
|
||||||
// have returned an error.
|
// would have returned an error.
|
||||||
func MustRegisterOrGet(m Collector) Collector {
|
func MustRegisterOrGet(m Collector) Collector {
|
||||||
existing, err := RegisterOrGet(m)
|
existing, err := RegisterOrGet(m)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue