]> git.lizzy.rs Git - rust.git/commitdiff
core::iter::repeat_with: fix spelling, s/not/note
authorMazdak Farrokhzad <twingoow@gmail.com>
Fri, 16 Feb 2018 21:14:32 +0000 (22:14 +0100)
committerMazdak Farrokhzad <twingoow@gmail.com>
Fri, 16 Feb 2018 21:14:32 +0000 (22:14 +0100)
src/libcore/iter/sources.rs

index 3e9d799c089486b95c78cb022f834d4f521379bb..dfd42f3e7330157bec889946ce712a74ef4409dd 100644 (file)
@@ -159,7 +159,7 @@ unsafe impl<A, F: FnMut() -> A> TrustedLen for RepeatWith<F> {}
 /// [`repeat`]: fn.repeat.html
 ///
 /// 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,
 /// `repeat_with(f).rev().collect::<Vec<_>>()` is equivalent to
 /// `repeat_with(f).collect::<Vec<_>>()`.