Skip to content

Commit

Permalink
database/sql: fix Rows.Columns() documentation
Browse files Browse the repository at this point in the history
Fixes #27202

Change-Id: I83620748a81500e433795c7b2b7f13399d17f777
GitHub-Last-Rev: 64457e12ceaa408efc7f75091f1b30c35b8e5d44
GitHub-Pull-Request: golang/go#27472
Reviewed-on: https://go-review.googlesource.com/133057
Reviewed-by: Daniel Theophanes <[email protected]>
  • Loading branch information
AlekSi authored and kardianos committed Sep 3, 2018
1 parent 5188c87 commit 5ed30d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/database/sql/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -2735,8 +2735,7 @@ func (rs *Rows) Err() error {
}

// Columns returns the column names.
// Columns returns an error if the rows are closed, or if the rows
// are from QueryRow and there was a deferred error.
// Columns returns an error if the rows are closed.
func (rs *Rows) Columns() ([]string, error) {
rs.closemu.RLock()
defer rs.closemu.RUnlock()
Expand Down

0 comments on commit 5ed30d8

Please sign in to comment.