From dc13401989de4632a89e7bb036a2847eb74e773f Mon Sep 17 00:00:00 2001 From: Shivam Mamgain Date: Sat, 12 Nov 2016 16:02:12 +0530 Subject: [PATCH] Fix documentation Specify correct function name in README --- examples/chat/README.md | 2 +- examples/chat/client.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/chat/README.md b/examples/chat/README.md index 65ff69e..47c82f9 100644 --- a/examples/chat/README.md +++ b/examples/chat/README.md @@ -59,7 +59,7 @@ unregisters the client and closes the websocket. The code for the `Client` type is in [client.go](https://github.com/gorilla/websocket/blob/master/examples/chat/client.go). -The `wsHandler` function is registered by the application's `main` function as +The `serveWs` function is registered by the application's `main` function as an HTTP handler. The handler upgrades the HTTP connection to the WebSocket protocol, creates a client, registers the client with the hub and schedules the client to be unregistered using a defer statement. diff --git a/examples/chat/client.go b/examples/chat/client.go index bf6285d..2646847 100644 --- a/examples/chat/client.go +++ b/examples/chat/client.go @@ -37,7 +37,7 @@ var upgrader = websocket.Upgrader{ WriteBufferSize: 1024, } -// Client is an middleman between the websocket connection and the hub. +// Client is a middleman between the websocket connection and the hub. type Client struct { hub *Hub