Selaa lähdekoodia

Merge pull request #185 from shivamMg/doc-fix

Fix documentation
Gary Burd 9 vuotta sitten
vanhempi
commit
e8f0f8aaa9
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      examples/chat/README.md
  2. 1 1
      examples/chat/client.go

+ 1 - 1
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.

+ 1 - 1
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