Skip to content

Commit c940904

Browse files
committed
Improve MessageType godoc
1 parent 6448e27 commit c940904

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: messagetype.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ type MessageType int
99
// MessageType constants.
1010
const (
1111
// MessageText is for UTF-8 encoded text messages like JSON.
12-
MessageText MessageType = MessageType(opText)
12+
MessageText MessageType = iota + 1
1313
// MessageBinary is for binary messages like Protobufs.
14-
MessageBinary MessageType = MessageType(opBinary)
14+
MessageBinary
1515
)
1616

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

0 commit comments

Comments
 (0)