Decoder: rename SetStrict to DisallowUnknownFields (#731)

This commit is contained in:
Thomas Pelletier
2022-01-02 14:32:34 -05:00
committed by GitHub
parent c3ba3ef97a
commit e83cf535f5
5 changed files with 15 additions and 15 deletions
@@ -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
}