core::iter::repeat_with: fix missing word, see @Pazzaz's review
This commit is contained in:
parent
91a4b9044d
commit
db13296b6f
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ impl<A, F: FnMut() -> A> FusedIterator for RepeatWith<F> {}
|
|||
#[unstable(feature = "trusted_len", issue = "37572")]
|
||||
unsafe impl<A, F: FnMut() -> A> TrustedLen for RepeatWith<F> {}
|
||||
|
||||
/// Creates a new that repeats elements of type `A` endlessly by
|
||||
/// Creates a new iterator that repeats elements of type `A` endlessly by
|
||||
/// applying the provided closure, the repeater, `F: FnMut() -> A`.
|
||||
///
|
||||
/// The `repeat_with()` function calls the repeater over and over and over and
|
||||
|
|
Loading…
Reference in a new issue