Commit 1129ec2f authored by Alexey Palazhchenko's avatar Alexey Palazhchenko Committed by Brad Fitzpatrick

database/sql: trivial documentation fixes

Change-Id: I573172384eaf32daaca5021a9a1874bf0f3d340f
Reviewed-on: https://go-review.googlesource.com/110575Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 60c76f76
...@@ -792,8 +792,8 @@ func (db *DB) maxIdleConnsLocked() int { ...@@ -792,8 +792,8 @@ func (db *DB) maxIdleConnsLocked() int {
// SetMaxIdleConns sets the maximum number of connections in the idle // SetMaxIdleConns sets the maximum number of connections in the idle
// connection pool. // connection pool.
// //
// If MaxOpenConns is greater than 0 but less than the new MaxIdleConns // If MaxOpenConns is greater than 0 but less than the new MaxIdleConns,
// then the new MaxIdleConns will be reduced to match the MaxOpenConns limit // then the new MaxIdleConns will be reduced to match the MaxOpenConns limit.
// //
// If n <= 0, no idle connections are retained. // If n <= 0, no idle connections are retained.
func (db *DB) SetMaxIdleConns(n int) { func (db *DB) SetMaxIdleConns(n int) {
...@@ -825,7 +825,7 @@ 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 // If MaxIdleConns is greater than 0 and the new MaxOpenConns is less than
// MaxIdleConns, then MaxIdleConns will be reduced to match the new // 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. // If n <= 0, then there is no limit on the number of open connections.
// The default is 0 (unlimited). // The default is 0 (unlimited).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment