Skip to content

Commit 04256e7

Browse files
Rollup merge of #48282 - Centril:spelling-fix/iter-repeat-with, r=kennytm
Fix spelling in core::iter::repeat_with: s/not/note Fixes spelling error in #48156 (comment). Tracking issue: #48169
2 parents af140ec + 6e27aa8 commit 04256e7

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
@@ -159,7 +159,7 @@ unsafe impl<A, F: FnMut() -> A> TrustedLen for RepeatWith<F> {}
159159
/// [`repeat`]: fn.repeat.html
160160
///
161161
/// An iterator produced by `repeat_with()` is a `DoubleEndedIterator`.
162-
/// It is important to not that reversing `repeat_with(f)` will produce
162+
/// It is important to note that reversing `repeat_with(f)` will produce
163163
/// the exact same sequence as the non-reversed iterator. In other words,
164164
/// `repeat_with(f).rev().collect::<Vec<_>>()` is equivalent to
165165
/// `repeat_with(f).collect::<Vec<_>>()`.

0 commit comments

Comments
 (0)