1
0
mirror of https://github.com/golang/go synced 2024-10-04 10:21:21 -06:00

database/sql: Fix inaccurate comment

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/40370051
This commit is contained in:
Marko Tiikkaja 2013-12-17 14:53:31 -08:00 committed by Brad Fitzpatrick
parent 0a6ad46b4f
commit ab05a855c6

View 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