Skip to content

Commit db13296

Browse files
committed
core::iter::repeat_with: fix missing word, see @Pazzaz's review
1 parent 91a4b90 commit db13296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/iter/sources.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ impl<A, F: FnMut() -> A> FusedIterator for RepeatWith<F> {}
141141
#[unstable(feature = "trusted_len", issue = "37572")]
142142
unsafe impl<A, F: FnMut() -> A> TrustedLen for RepeatWith<F> {}
143143

144-
/// Creates a new that repeats elements of type `A` endlessly by
144+
/// Creates a new iterator that repeats elements of type `A` endlessly by
145145
/// applying the provided closure, the repeater, `F: FnMut() -> A`.
146146
///
147147
/// The `repeat_with()` function calls the repeater over and over and over and

0 commit comments

Comments
 (0)