]> Cypherpunks repositories - gostls13.git/commitdiff
database/sql: fix doc typos
authorEvan Shaw <chickencha@gmail.com>
Wed, 30 Dec 2015 00:23:11 +0000 (13:23 +1300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 30 Dec 2015 07:27:12 +0000 (07:27 +0000)
Change-Id: I374dabed6bf9783839d637e9d7fd6f4e61c7eecf
Reviewed-on: https://go-review.googlesource.com/18183
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/database/sql/sql.go

index 11ca68bfc0a32c3b640b7e658fc153040acff586..2d1528a21fd74b077d833a54040293963998970d 100644 (file)
@@ -1137,7 +1137,7 @@ func (db *DB) queryConn(dc *driverConn, releaseConn func(error), query string, a
 }
 
 // QueryRow executes a query that is expected to return at most one row.
-// QueryRow always return a non-nil value. Errors are deferred until
+// QueryRow always returns a non-nil value. Errors are deferred until
 // Row's Scan method is called.
 func (db *DB) QueryRow(query string, args ...interface{}) *Row {
        rows, err := db.Query(query, args...)
@@ -1411,7 +1411,7 @@ func (tx *Tx) Query(query string, args ...interface{}) (*Rows, error) {
 }
 
 // QueryRow executes a query that is expected to return at most one row.
-// QueryRow always return a non-nil value. Errors are deferred until
+// QueryRow always returns a non-nil value. Errors are deferred until
 // Row's Scan method is called.
 func (tx *Tx) QueryRow(query string, args ...interface{}) *Row {
        rows, err := tx.Query(query, args...)