Skip to content

Commit 5fae09b

Browse files
GuilhermeCarusoianlancetaylor
GuilhermeCaruso
authored andcommitted
encoding/json: add comment for mashalererror struct
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 <[email protected]>
1 parent 55715c1 commit 5fae09b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/encoding/json/encode.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ func (e *InvalidUTF8Error) Error() string {
259259
return "json: invalid UTF-8 in string: " + strconv.Quote(e.S)
260260
}
261261

262+
// A MarshalerError represents an error from calling a MarshalJSON or MarshalText method.
262263
type MarshalerError struct {
263264
Type reflect.Type
264265
Err error

0 commit comments

Comments
 (0)