Browse Source

Fix error in pool documentation.

Gary Burd 12 năm trước cách đây
mục cha
commit
aa31b4b202
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      redis/pool.go

+ 1 - 1
redis/pool.go

@@ -64,7 +64,7 @@ var errPoolClosed = errors.New("redigo: connection pool closed")
 // A request handler gets a connection from the pool and closes the connection
 // when the handler is done:
 //
-//  conn, err := pool.Get()
+//  conn := pool.Get()
 //  defer conn.Close()
 //  // do something with the connection
 type Pool struct {