Merge pull request #16 from darabos/patch-1

Fix small inconsistency in example.
This commit is contained in:
Gary Burd 2014-02-17 21:22:10 -08:00
commit 119002ce04
1 changed files with 1 additions and 1 deletions

2
doc.go
View File

@ -11,7 +11,7 @@
// Conn: // Conn:
// //
// func handler(w http.ResponseWriter, r *http.Request) { // func handler(w http.ResponseWriter, r *http.Request) {
// ws, err := websocket.Upgrade(w, r, nil, 1024, 1024) // conn, err := websocket.Upgrade(w, r, nil, 1024, 1024)
// if _, ok := err.(websocket.HandshakeError); ok { // if _, ok := err.(websocket.HandshakeError); ok {
// http.Error(w, "Not a websocket handshake", 400) // http.Error(w, "Not a websocket handshake", 400)
// return // return