fix comment in mode.go (#2129)

EnableJsonDisallowUnknownFields => EnableJsonDecoderDisallowUnknownFields
This commit is contained in:
Ivan Chen 2019-11-24 16:22:18 +08:00 committed by thinkerou
parent 15ced05c53
commit 70ca31bc11

View File

@ -77,7 +77,7 @@ func EnableJsonDecoderUseNumber() {
binding.EnableDecoderUseNumber = true 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. // call the DisallowUnknownFields method on the JSON Decoder instance.
func EnableJsonDecoderDisallowUnknownFields() { func EnableJsonDecoderDisallowUnknownFields() {
binding.EnableDecoderDisallowUnknownFields = true binding.EnableDecoderDisallowUnknownFields = true