doc: use ":=" when check error for conn.WriteMessage

This commit is contained in:
kim yongbin 2017-07-02 19:47:41 +09:00
parent ea4d1f681b
commit 7a8dacf0a7
1 changed files with 1 additions and 1 deletions

2
doc.go
View File

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