Skip to content

Commit

Permalink
encoding/json: add comment for mashalererror struct
Browse files Browse the repository at this point in the history
Change-Id: Iaabbfe5a4c1bbedd19d4087f1b79e5a38bdd3878
GitHub-Last-Rev: 55c91fc
GitHub-Pull-Request: #29752
Reviewed-on: https://go-review.googlesource.com/c/157958
Reviewed-by: Ian Lance Taylor <iant@golang.org>
  • Loading branch information
GuilhermeCaruso authored and ianlancetaylor committed Jan 15, 2019
1 parent 55715c1 commit 5fae09b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/encoding/json/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5fae09b

Please sign in to comment.