Fixed Examples

- Typo ("conn.WriteMessaage" should be "conn.WriteMessage")
- Fixed Incorrect WriteMessage call:

    func (c *Conn) WriteMessage(messageType int, data []byte) error

But the example uses `_, err` when there is only 1 return type.
This commit is contained in:
Mark Dain 2013-12-31 11:00:58 +00:00
parent 707d1f6c6b
commit 30354e97e2
1 changed files with 1 additions and 1 deletions

2
doc.go
View File

@ -31,7 +31,7 @@
// if err != nil { // if err != nil {
// return // return
// } // }
// if _, err := conn.WriteMessaage(messageType, p); err != nil { // if err = conn.WriteMessage(messageType, p); err != nil {
// return err // return err
// } // }
// } // }