forked from mirror/gin
fix comment in `mode.go` (#2129)
EnableJsonDisallowUnknownFields => EnableJsonDecoderDisallowUnknownFields
This commit is contained in:
parent
15ced05c53
commit
70ca31bc11
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
|
||||
|
|
Loading…
Reference in New Issue