Typo in README.md fix (#770)

Change "document was not prevent in the target structure" to "document was not present in the target structure".
This commit is contained in:
Erik Hartwig
2022-05-09 09:46:46 -07:00
committed by GitHub
parent c5ca2c682b
commit db679df765
+1 -1
View File
@@ -38,7 +38,7 @@ operations should not be shockingly slow. See [benchmarks](#benchmarks).
### Strict mode
`Decoder` can be set to "strict mode", which makes it error when some parts of
the TOML document was not prevent in the target structure. This is a great way
the TOML document was not present in the target structure. This is a great way
to check for typos. [See example in the documentation][strict].
[strict]: https://pkg.go.dev/github.com/pelletier/go-toml/v2#example-Decoder.DisallowUnknownFields