Skip to content

Commit

Permalink
Iterator::cycle() — document empty iterator special case
Browse files Browse the repository at this point in the history
  • Loading branch information
xkr47 committed Dec 13, 2021
1 parent 6d6d089 commit 7f2f9c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/core/src/iter/traits/iterator.rs
Expand Up @@ -3028,7 +3028,8 @@ pub trait Iterator {
///
/// Instead of stopping at [`None`], the iterator will instead start again,
/// from the beginning. After iterating again, it will start at the
/// beginning again. And again. And again. Forever.
/// beginning again. And again. And again. Forever. Note that in case the
/// original iterator is empty the resulting iterator will also be empty.
///
/// # Examples
///
Expand Down

0 comments on commit 7f2f9c6

Please sign in to comment.