1
0
mirror of https://github.com/golang/go synced 2024-10-03 11:21:22 -06:00

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
This commit is contained in:
Roger Peppe 2012-10-29 20:58:24 +01:00
parent c242aa34cc
commit 9c775353b9

View File

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