Fix off by one error in benchmark

pull/1708/head
Jack Christensen 2023-08-08 18:38:34 -05:00
parent d17440d5c7
commit 5c6cf62b53
1 changed files with 2 additions and 1 deletions

View File

@ -339,8 +339,9 @@ type benchmarkWriteTableCopyFromSrc struct {
} }
func (s *benchmarkWriteTableCopyFromSrc) Next() bool { func (s *benchmarkWriteTableCopyFromSrc) Next() bool {
next := s.idx < s.count
s.idx++ s.idx++
return s.idx < s.count return next
} }
func (s *benchmarkWriteTableCopyFromSrc) Values() ([]any, error) { func (s *benchmarkWriteTableCopyFromSrc) Values() ([]any, error) {