Explorar o código

Improve Conn.Err documentation.

Gary Burd %!s(int64=12) %!d(string=hai) anos
pai
achega
16695f5ed6
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      redis/redis.go

+ 2 - 1
redis/redis.go

@@ -24,7 +24,8 @@ type Conn interface {
 	// Close closes the connection.
 	Close() error
 
-	// Err returns the permanent error for this connection.
+	// Err returns a non-nil value if the connection has failed because of a
+	// protocol error or an error from the underlying network connection.
 	Err() error
 
 	// Do sends a command to the server and returns the received reply.