]> git.lizzy.rs Git - rust.git/commitdiff
Improve wording for StepBy
authorsteveklabnik <steve@steveklabnik.com>
Mon, 25 Sep 2017 15:41:39 +0000 (11:41 -0400)
committersteveklabnik <steve@steveklabnik.com>
Mon, 25 Sep 2017 15:41:39 +0000 (11:41 -0400)
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.

src/libcore/iter/mod.rs

index 7907f2fd66126c9d87097c3377618b67e932aac0..14b87f42f6a79e8fa9cb2e0dee26b8e04204c84a 100644 (file)
@@ -546,7 +546,7 @@ fn size_hint(&self) -> (usize, Option<usize>) {
 #[unstable(feature = "fused", issue = "35602")]
 impl<I> FusedIterator for Cycle<I> where I: Clone + Iterator {}
 
-/// An adapter for stepping iterators by a custom amount.
+/// An iterator for stepping iterators by a custom amount.
 ///
 /// This `struct` is created by the [`step_by`] method on [`Iterator`]. See
 /// its documentation for more.