From c7f8cfac8e8de77195109fbee0762568b7c20ffe Mon Sep 17 00:00:00 2001 From: John Johnson III Date: Wed, 25 Dec 2019 21:22:31 -0600 Subject: [PATCH] Fix a couple of small typo's Fixes a couple of small typo's in the example test docs. --- example_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/example_test.go b/example_test.go index 96449eac..cd1883b8 100644 --- a/example_test.go +++ b/example_test.go @@ -23,10 +23,9 @@ var ( // This server application works with a client application running in the // browser. The client application does not explicitly close the websocket. The // only expected close message from the client has the code -// websocket.CloseGoingAway. All other other close messages are likely the +// websocket.CloseGoingAway. All other close messages are likely the // result of an application or protocol error and are logged to aid debugging. func ExampleIsUnexpectedCloseError() { - for { messageType, p, err := c.ReadMessage() if err != nil { @@ -35,11 +34,11 @@ func ExampleIsUnexpectedCloseError() { } return } - processMesage(messageType, p) + processMessage(messageType, p) } } -func processMesage(mt int, p []byte) {} +func processMessage(mt int, p []byte) {} // TestX prevents godoc from showing this entire file in the example. Remove // this function when a second example is added.