浏览代码

Merge pull request #8 from billthornton/patch-1

Fixed a small error in the pool creation example
Gary Burd 13 年之前
父节点
当前提交
0f1817d848
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      redis/pool.go

+ 1 - 1
redis/pool.go

@@ -40,7 +40,7 @@ var errPoolClosed = errors.New("redigo: connection pool closed")
 //      pool = &redis.Pool{
 //              MaxIdle: 3,
 //              IdleTimeout: 240 * time.Second,
-//              Dial: func () (redis.Conn error) {
+//              Dial: func () (redis.Conn, error) {
 //                  c, err := redis.Dial("tcp", server)
 //                  if err != nil {
 //                      return nil, err