We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 939b143 commit 66a2606Copy full SHA for 66a2606
library/core/src/iter/adapters/zip.rs
@@ -200,6 +200,7 @@ where
200
} else if A::MAY_HAVE_SIDE_EFFECT && self.index < self.a.size() {
201
let i = self.index;
202
self.index += 1;
203
+ self.len += 1;
204
// match the base implementation's potential side effects
205
// SAFETY: we just checked that `i` < `self.a.len()`
206
unsafe {
0 commit comments