about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorJoseph Crail <jbcrail@gmail.com>2015-03-19 00:48:08 -0400
committerJoseph Crail <jbcrail@gmail.com>2015-03-19 00:48:08 -0400
commit857035ade7577d23bac596eb43c34e6844ce0b74 (patch)
treed525325183421024290c559a877541022a684f0d /src/libcore
parent12cb7c6a2847959460ecac75b2c983d071585472 (diff)
downloadrust-857035ade7577d23bac596eb43c34e6844ce0b74.tar.gz
rust-857035ade7577d23bac596eb43c34e6844ce0b74.zip
Fix spelling errors in comments.
I corrected misspelled comments in several crates.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/str/pattern.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/str/pattern.rs b/src/libcore/str/pattern.rs
index 9eeb9b869ce..7bf248917a5 100644
--- a/src/libcore/str/pattern.rs
+++ b/src/libcore/str/pattern.rs
@@ -25,7 +25,7 @@ use super::CharEq;
 ///
 /// The trait itself acts as a builder for an associated
 /// `Searcher` type, which does the actual work of finding
-/// occurences of the pattern in a string.
+/// occurrences of the pattern in a string.
 pub trait Pattern<'a>: Sized {
     /// Associated searcher for this pattern
     type Searcher: Searcher<'a>;
@@ -72,7 +72,7 @@ pub enum SearchStep {
     /// Expresses that `haystack[a..b]` has been rejected as a possible match
     /// of the pattern.
     ///
-    /// Note that there might be more than one `Reject` betwen two `Match`es,
+    /// Note that there might be more than one `Reject` between two `Match`es,
     /// there is no requirement for them to be combined into one.
     Reject(usize, usize),
     /// Expresses that every byte of the haystack has been visted, ending