]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/json: tweak docs
authorRoger Peppe <rogpeppe@gmail.com>
Mon, 29 Oct 2012 19:58:24 +0000 (20:58 +0100)
committerRoger Peppe <rogpeppe@gmail.com>
Mon, 29 Oct 2012 19:58:24 +0000 (20:58 +0100)
"JSON object" means something specific, which
isn't the case here.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6789044

src/pkg/encoding/json/decode.go

index 47e3d89aa358ca0a8cb529aa779b45ffd0730fae..b06b87af400bf5134e62b2e6285d39e43533af00 100644 (file)
@@ -67,8 +67,8 @@ func Unmarshal(data []byte, v interface{}) error {
 
 // Unmarshaler is the interface implemented by objects
 // that can unmarshal a JSON description of themselves.
-// The input can be assumed to be a valid JSON object
-// encoding.  UnmarshalJSON must copy the JSON data
+// The input can be assumed to be a valid encoding of
+// a JSON value. UnmarshalJSON must copy the JSON data
 // if it wishes to retain the data after returning.
 type Unmarshaler interface {
        UnmarshalJSON([]byte) error