Decoder: rename SetStrict to DisallowUnknownFields (#731)
This commit is contained in:
@@ -1925,7 +1925,7 @@ func decoder(doc string) *toml.Decoder {
|
||||
|
||||
func strictDecoder(doc string) *toml.Decoder {
|
||||
d := decoder(doc)
|
||||
d.SetStrict(true)
|
||||
d.DisallowUnknownFields()
|
||||
return d
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user