Merge pull request #215 from djui/patch-1

Fix typo in doc string
This commit is contained in:
Brian Brazil 2016-08-01 22:18:14 +01:00 committed by GitHub
commit b672480095
1 changed files with 2 additions and 2 deletions

View File

@ -138,8 +138,8 @@ func RegisterOrGet(m Collector) (Collector, error) {
return defRegistry.RegisterOrGet(m)
}
// MustRegisterOrGet works like Register but panics where RegisterOrGet would
// have returned an error.
// MustRegisterOrGet works like RegisterOrGet but panics where RegisterOrGet
// would have returned an error.
func MustRegisterOrGet(m Collector) Collector {
existing, err := RegisterOrGet(m)
if err != nil {