Skip to content

Commit f37493a

Browse files
committed
database/sql/driver: fix Rows.Next() comment
CL 89936 introduced restriction that Rows.Close() shouldn't modify dest in previous Next(). CL 497675 for #60304 removed that restriction. But it didn't remove doc about the restriction.
1 parent d000963 commit f37493a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/database/sql/driver/driver.go

-4
Original file line numberDiff line numberDiff line change
@@ -436,10 +436,6 @@ type Rows interface {
436436
// size as the Columns() are wide.
437437
//
438438
// Next should return io.EOF when there are no more rows.
439-
//
440-
// The dest should not be written to outside of Next. Care
441-
// should be taken when closing Rows not to modify
442-
// a buffer held in dest.
443439
Next(dest []Value) error
444440
}
445441

0 commit comments

Comments
 (0)