Skip to content

Commit

Permalink
Improve MessageType godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
nhooyr committed Sep 21, 2019
1 parent 6448e27 commit c940904
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions messagetype.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ type MessageType int
// MessageType constants.
const (
// MessageText is for UTF-8 encoded text messages like JSON.
MessageText MessageType = MessageType(opText)
MessageText MessageType = iota + 1
// MessageBinary is for binary messages like Protobufs.
MessageBinary MessageType = MessageType(opBinary)
MessageBinary
)

// Above I've explicitly included the types of the constants for stringer.

0 comments on commit c940904

Please sign in to comment.