From 6b3bf61ce84a63e5c9d92079f80e2229d3e8c18b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20H=C4=83loiu?= Date: Thu, 11 Feb 2016 02:22:44 +0200 Subject: [PATCH] Fix documentation typos --- doc.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc.go b/doc.go index 7228627..609dde8 100644 --- a/doc.go +++ b/doc.go @@ -46,8 +46,7 @@ // method to get an io.WriteCloser, write the message to the writer and close // the writer when done. To receive a message, call the connection NextReader // method to get an io.Reader and read until io.EOF is returned. This snippet -// snippet shows how to echo messages using the NextWriter and NextReader -// methods: +// shows how to echo messages using the NextWriter and NextReader methods: // // for { // messageType, r, err := conn.NextReader() @@ -141,9 +140,9 @@ // An application can allow connections from any origin by specifying a // function that always returns true: // -// var upgrader = websocket.Upgrader{ +// var upgrader = websocket.Upgrader{ // CheckOrigin: func(r *http.Request) bool { return true }, -// } +// } // // The deprecated Upgrade function does not enforce an origin policy. It's the // application's responsibility to check the Origin header before calling