]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/json: add comment for mashalererror struct
authorGuilhermeCaruso <gui.martinscaruso@gmail.com>
Tue, 15 Jan 2019 23:24:52 +0000 (23:24 +0000)
committerIan Lance Taylor <iant@golang.org>
Tue, 15 Jan 2019 23:30:58 +0000 (23:30 +0000)
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>
src/encoding/json/encode.go

index f10124e67d13c8f1348efb3d6b55008f59636ef4..dea63f1850fef444dc8a6a3490c6d3983c97afba 100644 (file)
@@ -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