Correct documentation, the "ReadJSON" function depends on "Unmarshal", not "Marshal"

This commit is contained in:
Eric Urban 2014-08-10 20:42:52 -05:00
parent f940e88c0e
commit ade0fc90f7
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ func ReadJSON(c *Conn, v interface{}) error {
// ReadJSON reads the next JSON-encoded message from the connection and stores
// it in the value pointed to by v.
//
// See the documentation for the encoding/json Marshal function for details
// See the documentation for the encoding/json Unmarshal function for details
// about the conversion of JSON to a Go value.
func (c *Conn) ReadJSON(v interface{}) error {
_, r, err := c.NextReader()