diff options
Diffstat (limited to 'src/encoding')
| -rw-r--r-- | src/encoding/json/decode.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/encoding/json/decode.go b/src/encoding/json/decode.go index 77fc4607db..c815599cd5 100644 --- a/src/encoding/json/decode.go +++ b/src/encoding/json/decode.go @@ -22,7 +22,8 @@ import ( ) // Unmarshal parses the JSON-encoded data and stores the result -// in the value pointed to by v. +// in the value pointed to by v. If v is nil or not a pointer, +// Unmarshal returns an InvalidUnmarshalError. // // Unmarshal uses the inverse of the encodings that // Marshal uses, allocating maps, slices, and pointers as necessary, |
