mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
database/sql: fix doc typos
Change-Id: I374dabed6bf9783839d637e9d7fd6f4e61c7eecf Reviewed-on: https://go-review.googlesource.com/18183 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
4601776901
commit
e35901fd65
1 changed files with 2 additions and 2 deletions
|
|
@ -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...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue