aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql/sql.go
diff options
context:
space:
mode:
authorAlexey Palazhchenko <alexey.palazhchenko@gmail.com>2018-05-01 16:33:27 +0300
committerBrad Fitzpatrick <bradfitz@golang.org>2018-05-01 14:43:13 +0000
commit1129ec2ffeccbd668e0a19f60bbe8ef251b05e5f (patch)
treeb74c796de7814ba720019908c2998481e9602a9d /src/database/sql/sql.go
parent60c76f7656f24074b7708369c1628835c89118da (diff)
downloadgo-1129ec2ffeccbd668e0a19f60bbe8ef251b05e5f.tar.xz
database/sql: trivial documentation fixes
Change-Id: I573172384eaf32daaca5021a9a1874bf0f3d340f Reviewed-on: https://go-review.googlesource.com/110575 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/database/sql/sql.go')
-rw-r--r--src/database/sql/sql.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/database/sql/sql.go b/src/database/sql/sql.go
index d192dd95b8..1038bb659a 100644
--- a/src/database/sql/sql.go
+++ b/src/database/sql/sql.go
@@ -792,8 +792,8 @@ func (db *DB) maxIdleConnsLocked() int {
// SetMaxIdleConns sets the maximum number of connections in the idle
// connection pool.
//
-// If MaxOpenConns is greater than 0 but less than the new MaxIdleConns
-// then the new MaxIdleConns will be reduced to match the MaxOpenConns limit
+// If MaxOpenConns is greater than 0 but less than the new MaxIdleConns,
+// then the new MaxIdleConns will be reduced to match the MaxOpenConns limit.
//
// If n <= 0, no idle connections are retained.
func (db *DB) SetMaxIdleConns(n int) {
@@ -825,7 +825,7 @@ func (db *DB) SetMaxIdleConns(n int) {
//
// If MaxIdleConns is greater than 0 and the new MaxOpenConns is less than
// MaxIdleConns, then MaxIdleConns will be reduced to match the new
-// MaxOpenConns limit
+// MaxOpenConns limit.
//
// If n <= 0, then there is no limit on the number of open connections.
// The default is 0 (unlimited).