Просмотр исходного кода

Fix error in pool documentation.

Gary Burd 12 лет назад
Родитель
Сommit
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 {