Skip to content

Commit 0a093fc

Browse files
author
John Johnson III
authored
Fix a couple of small typo's (#567)
Fixes a couple of small typo's in the example test docs.
1 parent ed9368d commit 0a093fc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

example_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ var (
2323
// This server application works with a client application running in the
2424
// browser. The client application does not explicitly close the websocket. The
2525
// only expected close message from the client has the code
26-
// websocket.CloseGoingAway. All other other close messages are likely the
26+
// websocket.CloseGoingAway. All other close messages are likely the
2727
// result of an application or protocol error and are logged to aid debugging.
2828
func ExampleIsUnexpectedCloseError() {
29-
3029
for {
3130
messageType, p, err := c.ReadMessage()
3231
if err != nil {
@@ -35,11 +34,11 @@ func ExampleIsUnexpectedCloseError() {
3534
}
3635
return
3736
}
38-
processMesage(messageType, p)
37+
processMessage(messageType, p)
3938
}
4039
}
4140

42-
func processMesage(mt int, p []byte) {}
41+
func processMessage(mt int, p []byte) {}
4342

4443
// TestX prevents godoc from showing this entire file in the example. Remove
4544
// this function when a second example is added.

0 commit comments

Comments
 (0)