diff --git a/src/encoding/json/encode.go b/src/encoding/json/encode.go index f10124e67d13c8..dea63f1850fef4 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