diff --git a/net/gtcp/gtcp_conn.go b/net/gtcp/gtcp_conn.go index aedc235cf..673c34658 100644 --- a/net/gtcp/gtcp_conn.go +++ b/net/gtcp/gtcp_conn.go @@ -94,7 +94,7 @@ func (c *Conn) Send(data []byte, retry ...Retry) error { } } -// Recv receives data from the connection. +// Recv receives and returns data from the connection. // // Note that, // 1. If length = 0, which means it receives the data from current buffer and returns immediately. diff --git a/net/gudp/gudp_conn.go b/net/gudp/gudp_conn.go index d6d77474d..d9fdf317f 100644 --- a/net/gudp/gudp_conn.go +++ b/net/gudp/gudp_conn.go @@ -82,7 +82,7 @@ func (c *Conn) Send(data []byte, retry ...Retry) (err error) { } } -// Recv receives data from remote address. +// Recv receives and returns data from remote address. // The parameter is used for customizing the receiving buffer size. If <= 0, // it uses the default buffer size, which is 1024 byte. //