Fix documentation to correctly reflect implementation

This commit is contained in:
Herkermer Sherwood 2017-04-29 14:36:07 -07:00
parent ed787f03db
commit 103db871f3

View file

@ -731,8 +731,8 @@ func (v *Viper) UnmarshalKey(key string, rawVal interface{}) error {
return nil return nil
} }
// UnmarshalKeyWithMeta performs UnmarshalKey and using an additional // UnmarshalKeyWithMeta performs UnmarshalKey and provides access to the
// parameter, also provides access to the mapstructure.Metadata. // mapstructure.Metadata in an additional return value.
func UnmarshalKeyWithMeta(key string, rawVal interface{}) (mapstructure.Metadata, error) { func UnmarshalKeyWithMeta(key string, rawVal interface{}) (mapstructure.Metadata, error) {
return v.UnmarshalKeyWithMeta(key, rawVal) return v.UnmarshalKeyWithMeta(key, rawVal)
} }
@ -767,8 +767,8 @@ func (v *Viper) Unmarshal(rawVal interface{}) error {
return nil return nil
} }
// UnmarshalWithMeta performs Unmarshal and using an additional // UnmarshalWithMeta performs Unmarshal and provides access to the
// parameter, also provides access to the mapstructure.Metadata. // mapstructure.Metadata in an additional return value.
func UnmarshalWithMeta(rawVal interface{}) (mapstructure.Metadata, error) { func UnmarshalWithMeta(rawVal interface{}) (mapstructure.Metadata, error) {
return v.UnmarshalWithMeta(rawVal) return v.UnmarshalWithMeta(rawVal)
} }