Skip to content

Commit

Permalink
doc: use ":=" when check error for conn.WriteMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
kybin committed Jul 2, 2017
1 parent ea4d1f6 commit 7a8dacf
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 7a8dacf

Please sign in to comment.