Skip to content

Commit 6e27aa8

Browse files
committed
core::iter::repeat_with: fix spelling, s/not/note
1 parent 58a8e0c commit 6e27aa8

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)