aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/database/sql/sql.go
diff options
context:
space:
mode:
authorMarko Tiikkaja <marko@joh.to>2013-12-17 14:53:31 -0800
committerBrad Fitzpatrick <bradfitz@golang.org>2013-12-17 14:53:31 -0800
commitab05a855c6d5122dfe996b6b36bd39ee85a30b10 (patch)
treeb567c9b9e6baed0bba151503fda38356a2e2c25e /src/pkg/database/sql/sql.go
parent0a6ad46b4f59f38fd1b55d0f46134133d74bd376 (diff)
downloadgo-ab05a855c6d5122dfe996b6b36bd39ee85a30b10.tar.xz
database/sql: Fix inaccurate comment
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/40370051
Diffstat (limited to 'src/pkg/database/sql/sql.go')
-rw-r--r--src/pkg/database/sql/sql.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/database/sql/sql.go b/src/pkg/database/sql/sql.go
index df989cd66c..41527c8db1 100644
--- a/src/pkg/database/sql/sql.go
+++ b/src/pkg/database/sql/sql.go
@@ -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