Commit 4fafc843 authored by Tuo Shan's avatar Tuo Shan Committed by Russ Cox

encoding/json: clarify documention for Unmarshal into a pointer.

Fixes #18730.

Change-Id: If3ef28e62f7e449d4c8dc1dfd78f7d6f5a87ed26
Reviewed-on: https://go-review.googlesource.com/36478Reviewed-by: default avatarRuss Cox <rsc@golang.org>
parent a335c344
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment