From 02eec998dac2a937d8f615f99b43c602d1017e03 Mon Sep 17 00:00:00 2001 From: Gary Burd Date: Fri, 31 Oct 2014 14:51:45 -0700 Subject: [PATCH] Improve documentation. --- doc.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/doc.go b/doc.go index 798de9c..0d2bd91 100644 --- a/doc.go +++ b/doc.go @@ -97,10 +97,13 @@ // // Concurrency // -// A Conn supports a single concurrent caller to the write methods (NextWriter, -// SetWriteDeadline, WriteMessage) and a single concurrent caller to the read -// methods (NextReader, SetReadDeadline, ReadMessage). The Close and -// WriteControl methods can be called concurrently with all other methods. +// Connections do not support concurrent calls to the write methods +// (NextWriter, SetWriteDeadline, WriteMessage) or concurrent calls to the read +// methods methods (NextReader, SetReadDeadline, ReadMessage). Connections do +// support a concurrent reader and writer. +// +// The Close and WriteControl methods can be called concurrently with all other +// methods. // // Read is Required // @@ -139,7 +142,7 @@ // CheckOrigin: func(r *http.Request) bool { return true }, // } // -// The deprecated Upgrade function does enforce an origin policy. It's the +// The deprecated Upgrade function does not enforce an origin policy. It's the // application's responsibility to check the Origin header before calling // Upgrade. package websocket