diff options
| author | GuilhermeCaruso <gui.martinscaruso@gmail.com> | 2019-01-15 23:24:52 +0000 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2019-01-15 23:30:58 +0000 |
| commit | 5fae09b7386de26db59a1184f62fc7b22ec7667b (patch) | |
| tree | e3d3ac496d42838acdc3b08db0d57130f5d6d143 /src/encoding/json | |
| parent | 55715c1738adc0a9b6a7037390a700763365e284 (diff) | |
| download | go-5fae09b7386de26db59a1184f62fc7b22ec7667b.tar.xz | |
encoding/json: add comment for mashalererror struct
Change-Id: Iaabbfe5a4c1bbedd19d4087f1b79e5a38bdd3878
GitHub-Last-Rev: 55c91fc19074dacc66623aa7ff2286b11ccd5340
GitHub-Pull-Request: golang/go#29752
Reviewed-on: https://go-review.googlesource.com/c/157958
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/encoding/json')
| -rw-r--r-- | src/encoding/json/encode.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/encoding/json/encode.go b/src/encoding/json/encode.go index f10124e67d..dea63f1850 100644 --- a/src/encoding/json/encode.go +++ b/src/encoding/json/encode.go @@ -259,6 +259,7 @@ func (e *InvalidUTF8Error) Error() string { return "json: invalid UTF-8 in string: " + strconv.Quote(e.S) } +// A MarshalerError represents an error from calling a MarshalJSON or MarshalText method. type MarshalerError struct { Type reflect.Type Err error |
