Skip to content

Commit a69d25b

Browse files
authored
Merge pull request #152 from sambooo/patch-1
Fix typos in chat example
2 parents 5e2e56d + 295028b commit a69d25b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/chat/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To use the chat example, open http://localhost:8080/ in your browser.
2222
## Server
2323

2424
The server application defines two types, `Client` and `Hub`. The server
25-
creates an instance of the `Client` type for each webscocket connection. A
25+
creates an instance of the `Client` type for each websocket connection. A
2626
`Client` acts as an intermediary between the websocket connection and a single
2727
instance of the `Hub` type. The `Hub` maintains a set of registered clients and
2828
broadcasts messages to the clients.
@@ -32,7 +32,7 @@ The application runs one goroutine for the `Hub` and two goroutines for each
3232
has channels for registering clients, unregistering clients and broadcasting
3333
messages. A `Client` has a buffered channel of outbound messages. One of the
3434
client's goroutines reads messages from this channel and writes the messages to
35-
the webscoket. The other client goroutine reads messages from the websocket and
35+
the websocket. The other client goroutine reads messages from the websocket and
3636
sends them to the hub.
3737

3838
### Hub

0 commit comments

Comments
 (0)