Fix off by one error in benchmark
This commit is contained in:
+2
-1
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user