mirror of
https://github.com/spf13/viper
synced 2025-05-06 12:17:18 +00:00
Fix typo in description of UnmarshalExact
This commit is contained in:
parent
654fc7bb54
commit
3386e59410
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue