2
0

Fix off by one error in benchmark

This commit is contained in:
Jack Christensen
2023-08-08 18:38:34 -05:00
parent d17440d5c7
commit 5c6cf62b53
+2 -1
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) {