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:
parent
0a6ad46b4f
commit
ab05a855c6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user