about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorCarlos E. Garcia <carlos@cgarcia.org>2016-02-09 11:52:39 -0500
committerCarlos E. Garcia <carlos@cgarcia.org>2016-02-09 11:52:39 -0500
commit02aa0aff2f0b42368dd871186510493fa60d785a (patch)
tree9876ab46cee5b267ffcfd926f94ff75fc7273d36 /src/libcore
parent6630a0819553898c3fc0d060cc72a94d62ae1330 (diff)
downloadrust-02aa0aff2f0b42368dd871186510493fa60d785a.tar.gz
rust-02aa0aff2f0b42368dd871186510493fa60d785a.zip
Minor spelling fixes
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/convert.rs2
-rw-r--r--src/libcore/str/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/convert.rs b/src/libcore/convert.rs
index c207ad16595..b4ac020795c 100644
--- a/src/libcore/convert.rs
+++ b/src/libcore/convert.rs
@@ -19,7 +19,7 @@
 //!
 //! - Impl the `As*` traits for reference-to-reference conversions
 //! - Impl the `Into` trait when you want to consume the value in the conversion
-//! - The `From` trait is the most flexible, usefull for values _and_ references conversions
+//! - The `From` trait is the most flexible, useful for values _and_ references conversions
 //!
 //! As a library writer, you should prefer implementing `From<T>` rather than
 //! `Into<U>`, as `From` provides greater flexibility and offer the equivalent `Into`
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index f19970546d7..fa169416a10 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -1740,7 +1740,7 @@ impl StrExt for str {
         let mut matcher = pat.into_searcher(self);
         if let Some((a, b)) = matcher.next_reject() {
             i = a;
-            j = b; // Rember earliest known match, correct it below if
+            j = b; // Remember earliest known match, correct it below if
                    // last match is different
         }
         if let Some((_, b)) = matcher.next_reject_back() {