Skip to content

Commit f8257ab

Browse files
authored
Rollup merge of #59185 - lukaslueg:patch-2, r=cramertj
No old chestnuts in iter::repeat docs The current language may be amusing, yet is just imprecise and most especially difficult to understand for someone who speaks English as a foreign language.
2 parents a2f345e + d1fcd86 commit f8257ab

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/libcore/iter/sources.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ unsafe impl<A: Clone> TrustedLen for Repeat<A> {}
3939

4040
/// Creates a new iterator that endlessly repeats a single element.
4141
///
42-
/// The `repeat()` function repeats a single value over and over and over and
43-
/// over and over and 🔁.
42+
/// The `repeat()` function repeats a single value over and over again.
4443
///
4544
/// Infinite iterators like `repeat()` are often used with adapters like
4645
/// [`take`], in order to make them finite.
@@ -128,8 +127,7 @@ unsafe impl<A, F: FnMut() -> A> TrustedLen for RepeatWith<F> {}
128127
/// Creates a new iterator that repeats elements of type `A` endlessly by
129128
/// applying the provided closure, the repeater, `F: FnMut() -> A`.
130129
///
131-
/// The `repeat_with()` function calls the repeater over and over and over and
132-
/// over and over and 🔁.
130+
/// The `repeat_with()` function calls the repeater over and over again.
133131
///
134132
/// Infinite iterators like `repeat_with()` are often used with adapters like
135133
/// [`take`], in order to make them finite.

0 commit comments

Comments
 (0)