diff --git a/src/database/sql/sql.go b/src/database/sql/sql.go index feb91223a9..0dbce6bde3 100644 --- a/src/database/sql/sql.go +++ b/src/database/sql/sql.go @@ -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 { diff --git a/src/database/sql/sql_test.go b/src/database/sql/sql_test.go index 898df3b455..2c0417dc78 100644 --- a/src/database/sql/sql_test.go +++ b/src/database/sql/sql_test.go @@ -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|")