Skip to content

Commit

Permalink
Merge pull request #261 from kybin/master
Browse files Browse the repository at this point in the history
doc: use ":=" when check error for conn.WriteMessage
  • Loading branch information
garyburd authored Jul 8, 2017
2 parents ea4d1f6 + 7a8dacf commit 462d5c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
// if err != nil {
// return
// }
// if err = conn.WriteMessage(messageType, p); err != nil {
// if err := conn.WriteMessage(messageType, p); err != nil {
// return err
// }
// }
Expand Down

0 comments on commit 462d5c5

Please sign in to comment.