Doc: clarify errors returned by Decode (#713)

Fixes #625
This commit is contained in:
Thomas Pelletier
2021-12-26 20:04:09 +01:00
committed by GitHub
parent 535fc65c5f
commit d58eb50ebf
3 changed files with 14 additions and 8 deletions
+3 -2
View File
@@ -55,8 +55,9 @@ to check for typos. [See example in the documentation][strict].
### Contextualized errors
When decoding errors occur, go-toml returns [`DecodeError`][decode-err]), which
contains a human readable contextualized version of the error. For example:
When most decoding errors occur, go-toml returns [`DecodeError`][decode-err]),
which contains a human readable contextualized version of the error. For
example:
```
2| key1 = "value1"