about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-02-18 13:21:02 +0100
committerGitHub <noreply@github.com>2018-02-18 13:21:02 +0100
commit04256e7b9dd4742869eaab6be413b41d6293eb76 (patch)
treea4d1656c8c16c37563b03c148b43c43d70e27e30 /src/libcore
parentaf140ecdbc64251d7f536411c84e0d398a3d6631 (diff)
parent6e27aa88a70b584dd36817a448d5089b42569183 (diff)
downloadrust-04256e7b9dd4742869eaab6be413b41d6293eb76.tar.gz
rust-04256e7b9dd4742869eaab6be413b41d6293eb76.zip
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 https://github.com/rust-lang/rust/pull/48156#discussion_r168718452.
Tracking issue: https://github.com/rust-lang/rust/issues/48169
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/iter/sources.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/iter/sources.rs b/src/libcore/iter/sources.rs
index 3e9d799c089..dfd42f3e733 100644
--- a/src/libcore/iter/sources.rs
+++ b/src/libcore/iter/sources.rs
@@ -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<_>>()`.