From ca5f14c366a2610d90e8631f799507785bf0d7b1 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 15 Jun 2020 22:51:44 +0800 Subject: [PATCH] comment updates for package gtcp --- net/gtcp/gtcp_conn.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/gtcp/gtcp_conn.go b/net/gtcp/gtcp_conn.go index 673c34658..84bbfac25 100644 --- a/net/gtcp/gtcp_conn.go +++ b/net/gtcp/gtcp_conn.go @@ -98,8 +98,9 @@ func (c *Conn) Send(data []byte, retry ...Retry) error { // // Note that, // 1. If length = 0, which means it receives the data from current buffer and returns immediately. -// 2. If length < 0, which means it receives all data from buffer and returns if it waits til no data from connection. -// Developers should notice the package parsing yourself if you decide receiving all data from buffer. +// 2. If length < 0, which means it receives all data from connection and returns it until no data +// from connection. Developers should notice the package parsing yourself if you decide receiving +// all data from buffer. // 3. If length > 0, which means it blocks reading data from connection until length size was received. // It is the most commonly used length value for data receiving. func (c *Conn) Recv(length int, retry ...Retry) ([]byte, error) {