Skip to content

Commit f6d9577

Browse files
authored
docs: add link from zip to unzip
The docs for `Iterator::unzip` explain that it is kind of an inverse operation to `Iterator::zip` and guide the reader to the `zip` docs, but the `zip` docs don't let the user know that they can undo the `zip` operation with `unzip`. This change modifies the docs to help the user find `unzip`.
1 parent f387c93 commit f6d9577

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/core/src/iter/traits/iterator.rs

+4
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,10 @@ pub trait Iterator {
469469
/// If the zipped iterator has no more elements to return then each further attempt to advance
470470
/// it will first try to advance the first iterator at most one time and if it still yielded an item
471471
/// try to advance the second iterator at most one time.
472+
///
473+
/// To 'undo' the result of zipping up two iterators, see [`unzip`].
474+
///
475+
/// [`unzip`]: Iterator::unzip
472476
///
473477
/// # Examples
474478
///

0 commit comments

Comments
 (0)