Преглед изворни кода

Fix error in pool documentation.

Gary Burd пре 12 година
родитељ
комит
aa31b4b202
1 измењених фајлова са 1 додато и 1 уклоњено
  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 {