We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 84826fe + 2ff677d commit 14ef447Copy full SHA for 14ef447
library/core/src/iter/traits/iterator.rs
@@ -461,8 +461,10 @@ pub trait Iterator {
461
/// In other words, it zips two iterators together, into a single one.
462
///
463
/// If either iterator returns [`None`], [`next`] from the zipped iterator
464
- /// will return [`None`]. If the first iterator returns [`None`], `zip` will
465
- /// short-circuit and `next` will not be called on the second iterator.
+ /// will return [`None`].
+ /// If the zipped iterator has no more elements to return then each further attempt to advance
466
+ /// it will first try to advance the first iterator at most one time and if it still yielded an item
467
+ /// try to advance the second iterator at most one time.
468
469
/// # Examples
470
0 commit comments