]> Cypherpunks repositories - gostls13.git/commitdiff
database/sql: fix spelling mistake
authorKevin Burke <kev@inburke.com>
Thu, 26 Jan 2017 21:41:56 +0000 (13:41 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 1 Feb 2017 21:06:35 +0000 (21:06 +0000)
Change-Id: I67db3b342929a7bd11f01bf3b9afb49f4da69a0a
Reviewed-on: https://go-review.googlesource.com/35841
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/database/sql/sql.go
src/database/sql/sql_test.go

index feb91223a9e9b99f48fa65e041afd6f7d309e791..0dbce6bde3329e8f81edb9025bf23c4a71c6d18f 100644 (file)
@@ -2348,7 +2348,7 @@ func (rs *Rows) Scan(dest ...interface{}) error {
 }
 
 // rowsCloseHook returns a function so tests may install the
-// hook throug a test only mutex.
+// hook through a test only mutex.
 var rowsCloseHook = func() func(*Rows, *error) { return nil }
 
 func (rs *Rows) isClosed() bool {
index 898df3b455b22cac915bdb19510cc9ba22f83cbe..2c0417dc78e81076e5c6470eac82120eefe23f5c 100644 (file)
@@ -2664,7 +2664,7 @@ func TestIssue18429(t *testing.T) {
                        if err != nil {
                                return
                        }
-                       // This is expected to give a cancel error many, but not all the time.
+                       // This is expected to give a cancel error most, but not all the time.
                        // Test failure will happen with a panic or other race condition being
                        // reported.
                        rows, _ := tx.QueryContext(ctx, "WAIT|"+qwait+"|SELECT|people|name|")