]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/json: added docs to UnsupportedValueError
authorCarlos Alexandro Becker <caarlos0@gmail.com>
Sun, 13 Sep 2020 14:40:51 +0000 (14:40 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 25 Sep 2020 19:10:05 +0000 (19:10 +0000)
Added godoc to UnsupportedValueError.

Change-Id: I5fc13bac0b6e14b3a6eba27c9d3331ff5c5269aa
GitHub-Last-Rev: 516cd7a92903e1048caa4d560abf5d66339e5a8f
GitHub-Pull-Request: golang/go#41364
Reviewed-on: https://go-review.googlesource.com/c/go/+/254540
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Trust: Daniel Martí <mvdan@mvdan.cc>
Trust: Heschi Kreinick <heschi@google.com>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Go Bot <gobot@golang.org>

src/encoding/json/encode.go

index ea5eca51ef89d8b753bc3b33fb2bde733c899696..483b9d8f2d0a3c5d80509a1e03d8835d869c19c4 100644 (file)
@@ -236,6 +236,8 @@ func (e *UnsupportedTypeError) Error() string {
        return "json: unsupported type: " + e.Type.String()
 }
 
+// An UnsupportedValueError is returned by Marshal when attempting
+// to encode an unsupported value.
 type UnsupportedValueError struct {
        Value reflect.Value
        Str   string