]> Cypherpunks.ru repositories - gostls13.git/commitdiff
database/sql: fix typo in comment
authorHein Khant Zaw <heinkhantzaw1@gmail.com>
Thu, 10 Dec 2020 16:45:48 +0000 (16:45 +0000)
committerIan Lance Taylor <iant@golang.org>
Thu, 10 Dec 2020 18:23:15 +0000 (18:23 +0000)
Fixes #43116

Change-Id: Ib04fab6ae03f322aa1508ec00523f628d891247a
GitHub-Last-Rev: 0a86e665b2c320e0b2aef75ee53bd7281b19b013
GitHub-Pull-Request: golang/go#43122
Reviewed-on: https://go-review.googlesource.com/c/go/+/276992
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
src/database/sql/sql.go

index d8f19520c8914d65774a2ef586bea61927f83ac2..726aadb8990e6871fdb1253e4f422e60b39f229f 100644 (file)
@@ -1141,7 +1141,7 @@ func (db *DB) connectionOpener(ctx context.Context) {
 
 // Open one new connection
 func (db *DB) openNewConnection(ctx context.Context) {
-       // maybeOpenNewConnctions has already executed db.numOpen++ before it sent
+       // maybeOpenNewConnections has already executed db.numOpen++ before it sent
        // on db.openerCh. This function must execute db.numOpen-- if the
        // connection fails or is closed before returning.
        ci, err := db.connector.Connect(ctx)