]> Cypherpunks repositories - gostls13.git/commitdiff
database/sql: trivial documentation fixes
authorAlexey Palazhchenko <alexey.palazhchenko@gmail.com>
Tue, 1 May 2018 13:33:27 +0000 (16:33 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 1 May 2018 14:43:13 +0000 (14:43 +0000)
Change-Id: I573172384eaf32daaca5021a9a1874bf0f3d340f
Reviewed-on: https://go-review.googlesource.com/110575
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/database/sql/sql.go

index d192dd95b89327c02beeaea210ebf0e6c3ccba86..1038bb659a0e82aa9e198111565ad688580ebceb 100644 (file)
@@ -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).