From 97f63d09c312f87af01afd47678a6fd5ee6643aa Mon Sep 17 00:00:00 2001 From: Anmol Sethi <hi@nhooyr.io> Date: Mon, 1 Jul 2019 11:03:26 -0400 Subject: [PATCH] Improve docs formatting on NetConn --- netconn.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netconn.go b/netconn.go index 3e43d90..e397d7a 100644 --- a/netconn.go +++ b/netconn.go @@ -11,12 +11,16 @@ import ( ) // NetConn converts a *websocket.Conn into a net.Conn. +// // Every Write to the net.Conn will correspond to a binary message // write on *webscoket.Conn. +// // Close will close the *websocket.Conn with StatusNormalClosure. +// // When a deadline is hit, the connection will be closed. This is // different from most net.Conn implementations where only the // reading/writing goroutines are interrupted but the connection is kept alive. +// // The Addr methods will return a mock net.Addr. func NetConn(c *Conn) net.Conn { nc := &netConn{ -- GitLab