From: Roger Peppe Date: Mon, 29 Oct 2012 19:58:24 +0000 (+0100) Subject: encoding/json: tweak docs X-Git-Tag: go1.1rc2~2039 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9c775353b9f3fe2938afdc50ecd16277619f1119;p=gostls13.git encoding/json: tweak docs "JSON object" means something specific, which isn't the case here. R=golang-dev, r CC=golang-dev https://golang.org/cl/6789044 --- diff --git a/src/pkg/encoding/json/decode.go b/src/pkg/encoding/json/decode.go index 47e3d89aa3..b06b87af40 100644 --- a/src/pkg/encoding/json/decode.go +++ b/src/pkg/encoding/json/decode.go @@ -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