Commit e35901fd authored by Evan Shaw's avatar Evan Shaw Committed by Brad Fitzpatrick

database/sql: fix doc typos

Change-Id: I374dabed6bf9783839d637e9d7fd6f4e61c7eecf
Reviewed-on: https://go-review.googlesource.com/18183Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 46017769
......@@ -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...)
......
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