mirror of https://github.com/gorilla/websocket.git
Merge pull request #38 from hydrogen18/master
Correct documentation of "ReadJSON"
This commit is contained in:
commit
365b7a442d
2
json.go
2
json.go
|
@ -38,7 +38,7 @@ func ReadJSON(c *Conn, v interface{}) error {
|
||||||
// ReadJSON reads the next JSON-encoded message from the connection and stores
|
// ReadJSON reads the next JSON-encoded message from the connection and stores
|
||||||
// it in the value pointed to by v.
|
// 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.
|
// about the conversion of JSON to a Go value.
|
||||||
func (c *Conn) ReadJSON(v interface{}) error {
|
func (c *Conn) ReadJSON(v interface{}) error {
|
||||||
_, r, err := c.NextReader()
|
_, r, err := c.NextReader()
|
||||||
|
|
Loading…
Reference in New Issue