Skip to content

Commit

Permalink
Rollup merge of rust-lang#91859 - xkr47:patch-2, r=yaahc
Browse files Browse the repository at this point in the history
Iterator::cycle() — document empty iterator special case
  • Loading branch information
matthiaskrgr authored Dec 14, 2021
2 parents bc3a4b0 + 715c562 commit 3fc0a01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/core/src/iter/traits/iterator.rs
Original file line number Diff line number Diff line change
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 3fc0a01

Please sign in to comment.