core::iter::repeat_with: fix spelling, s/not/note

This commit is contained in:
Mazdak Farrokhzad
2018-02-16 22:14:32 +01:00
parent 58a8e0c271
commit 6e27aa88a7

View File

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