Skip to content

Commit 3d7a390

Browse files
Rollup merge of rust-lang#44840 - steveklabnik:fix-wording, r=BurntSushi
Improve wording for StepBy No other iterator makes the distinction between an iterator and an iterator adapter in its summary line, so change it to be consistent with all other adapters.
2 parents 327cd0d + 3db0094 commit 3d7a390

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/iter/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ impl<I> Iterator for Cycle<I> where I: Clone + Iterator {
558558
#[unstable(feature = "fused", issue = "35602")]
559559
impl<I> FusedIterator for Cycle<I> where I: Clone + Iterator {}
560560

561-
/// An adapter for stepping iterators by a custom amount.
561+
/// An iterator for stepping iterators by a custom amount.
562562
///
563563
/// This `struct` is created by the [`step_by`] method on [`Iterator`]. See
564564
/// its documentation for more.

0 commit comments

Comments
 (0)