1
0
Fork 0
mirror of https://github.com/spf13/viper synced 2025-07-16 06:37:17 +00:00

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)
}
// 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
func (v *Viper) UnmarshalExact(rawVal interface{}) error {
err := weakDecodeExact(v.AllSettings(), rawVal)