Fix documentation error

fixes #749
This commit is contained in:
Jack Christensen 2020-05-16 07:48:11 -05:00
parent c65fd8e2df
commit 1b54d15e93

2
doc.go
View File

@ -53,7 +53,7 @@ pgx implements Query and Scan in the familiar database/sql style.
// Any errors encountered by rows.Next or rows.Scan will be returned here
if rows.Err() != nil {
return err
return rows.Err()
}
// No errors found - do something with sum