Skip to content

Commit dc13401

Browse files
committed
Fix documentation
Specify correct function name in README
1 parent 9fbf129 commit dc13401

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/chat/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ unregisters the client and closes the websocket.
5959

6060
The code for the `Client` type is in [client.go](https://github.com/gorilla/websocket/blob/master/examples/chat/client.go).
6161

62-
The `wsHandler` function is registered by the application's `main` function as
62+
The `serveWs` function is registered by the application's `main` function as
6363
an HTTP handler. The handler upgrades the HTTP connection to the WebSocket
6464
protocol, creates a client, registers the client with the hub and schedules the
6565
client to be unregistered using a defer statement.

examples/chat/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var upgrader = websocket.Upgrader{
3737
WriteBufferSize: 1024,
3838
}
3939

40-
// Client is an middleman between the websocket connection and the hub.
40+
// Client is a middleman between the websocket connection and the hub.
4141
type Client struct {
4242
hub *Hub
4343

0 commit comments

Comments
 (0)