diff --git a/viper.go b/viper.go index 5c441b4..74ea372 100644 --- a/viper.go +++ b/viper.go @@ -226,7 +226,7 @@ func New() *Viper { return v } -// Reset: Intended for testing, will reset all to default settings. +// Reset is intended for testing, will reset all to default settings. // In the public interface for the viper package so applications // can use it in their testing as well. func Reset() { @@ -1142,8 +1142,8 @@ func (v *Viper) SetEnvKeyReplacer(r *strings.Replacer) { v.envKeyReplacer = r } -// RegisterAlias: Aliases provide another accessor for the same key. -// This enables one to change a name without breaking the application +// RegisterAlias creates an alias that provides another accessor for the same key. +// This enables one to change a name without breaking the application. func RegisterAlias(alias string, key string) { v.RegisterAlias(alias, key) } func (v *Viper) RegisterAlias(alias string, key string) { v.registerAlias(alias, strings.ToLower(key))