diff options
Diffstat (limited to 'errors.go')
-rw-r--r-- | errors.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -142,7 +142,8 @@ func (e *EncodeWriteError) Unwrap() error { return e.Err } type EncodeTypeError = json.UnsupportedTypeError // An EncodeValueError is returned by Encode when attempting to encode -// an unsupported value (such as a datastructure with a cycle). +// an unsupported value (such as a datastructure with a cycle, or (if +// InvalidUTF8=InvalidUTF8Error) a string with invalid UTF-8). // // type UnsupportedValueError struct { // Value reflect.Value |