fix comment in mode.go
(#2129)
EnableJsonDisallowUnknownFields => EnableJsonDecoderDisallowUnknownFields
This commit is contained in:
2
mode.go
2
mode.go
@ -77,7 +77,7 @@ func EnableJsonDecoderUseNumber() {
|
||||
binding.EnableDecoderUseNumber = true
|
||||
}
|
||||
|
||||
// EnableJsonDisallowUnknownFields sets true for binding.EnableDecoderDisallowUnknownFields to
|
||||
// EnableJsonDecoderDisallowUnknownFields sets true for binding.EnableDecoderDisallowUnknownFields to
|
||||
// call the DisallowUnknownFields method on the JSON Decoder instance.
|
||||
func EnableJsonDecoderDisallowUnknownFields() {
|
||||
binding.EnableDecoderDisallowUnknownFields = true
|
||||
|
Reference in New Issue
Block a user