Fix typo in description of UnmarshalExact

This commit is contained in:
bogem 2016-08-20 10:34:48 +05:00
parent 654fc7bb54
commit 3386e59410

View file

@ -654,7 +654,7 @@ func weakDecodeExact(input, output interface{}) error {
return decoder.Decode(input) return decoder.Decode(input)
} }
// Unmarshals the config into a Struct, erroring if a field is non-existant // Unmarshals the config into a Struct, erroring if a field is nonexistent
// in the destination struct // in the destination struct
func (v *Viper) UnmarshalExact(rawVal interface{}) error { func (v *Viper) UnmarshalExact(rawVal interface{}) error {
err := weakDecodeExact(v.AllSettings(), rawVal) err := weakDecodeExact(v.AllSettings(), rawVal)