]> Cypherpunks repositories - gostls13.git/commitdiff
database/sql: Fix inaccurate comment
authorMarko Tiikkaja <marko@joh.to>
Tue, 17 Dec 2013 22:53:31 +0000 (14:53 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 17 Dec 2013 22:53:31 +0000 (14:53 -0800)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/40370051

src/pkg/database/sql/sql.go

index df989cd66c7da7a7a7c09c5600c0033181be8c73..41527c8db199bc2dbf64b9968fc1cb7194e9e055 100644 (file)
@@ -774,8 +774,8 @@ func (db *DB) putConn(dc *driverConn, err error) {
 // Satisfy a connRequest or put the driverConn in the idle pool and return true
 // or return false.
 // putConnDBLocked will satisfy a connRequest if there is one, or it will
-// return the *driverConn to the freeConn list if err != nil and the idle
-// connection limit would not be reached.
+// return the *driverConn to the freeConn list if err == nil and the idle
+// connection limit will not be exceeded.
 // If err != nil, the value of dc is ignored.
 // If err == nil, then dc must not equal nil.
 // If a connRequest was fullfilled or the *driverConn was placed in the