mirror of
https://github.com/golang/go
synced 2024-11-20 08:04:42 -07: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:
parent
c242aa34cc
commit
9c775353b9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user