From 103db871f33aa9bbfcd91de421d95175f758f5ae Mon Sep 17 00:00:00 2001 From: Herkermer Sherwood Date: Sat, 29 Apr 2017 14:36:07 -0700 Subject: [PATCH] Fix documentation to correctly reflect implementation --- viper.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/viper.go b/viper.go index ac98754..a5fa2ab 100644 --- a/viper.go +++ b/viper.go @@ -731,8 +731,8 @@ func (v *Viper) UnmarshalKey(key string, rawVal interface{}) error { return nil } -// UnmarshalKeyWithMeta performs UnmarshalKey and using an additional -// parameter, also provides access to the mapstructure.Metadata. +// UnmarshalKeyWithMeta performs UnmarshalKey and provides access to the +// mapstructure.Metadata in an additional return value. func UnmarshalKeyWithMeta(key string, rawVal interface{}) (mapstructure.Metadata, error) { return v.UnmarshalKeyWithMeta(key, rawVal) } @@ -767,8 +767,8 @@ func (v *Viper) Unmarshal(rawVal interface{}) error { return nil } -// UnmarshalWithMeta performs Unmarshal and using an additional -// parameter, also provides access to the mapstructure.Metadata. +// UnmarshalWithMeta performs Unmarshal and provides access to the +// mapstructure.Metadata in an additional return value. func UnmarshalWithMeta(rawVal interface{}) (mapstructure.Metadata, error) { return v.UnmarshalWithMeta(rawVal) }