about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-01-07 15:35:30 +0000
committerbors <bors@rust-lang.org>2015-01-07 15:35:30 +0000
commitc0216c8945e7549f55d13302cc0a8ad41b2c2060 (patch)
treeed9258d084dccaaca1336b560f5a369e2015a9d9 /src/libsyntax/parse
parent7377c0b1a91f48c95bf6d0b1b179f4fbada70869 (diff)
parente3b7fedc20fcfe54e0ddb285fc6e6c6e862b3279 (diff)
downloadrust-c0216c8945e7549f55d13302cc0a8ad41b2c2060.tar.gz
rust-c0216c8945e7549f55d13302cc0a8ad41b2c2060.zip
Merge pull request #20674 from jbcrail/fix-misspelled-comments
Fix misspelled comments.

Reviewed-by: steveklabnik
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs2
-rw-r--r--src/libsyntax/parse/token.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 92e0395eca4..9c16dbb2c5c 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2749,7 +2749,7 @@ impl<'a> Parser<'a> {
                 let open_span = self.span;
                 self.bump();
 
-                // Parse the token trees within the delimeters
+                // Parse the token trees within the delimiters
                 let tts = self.parse_seq_to_before_end(
                     &token::CloseDelim(delim),
                     seq_sep_none(),
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 013bce1755b..43786738910 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -43,7 +43,7 @@ pub enum BinOpToken {
     Shr,
 }
 
-/// A delimeter token
+/// A delimiter token
 #[derive(Clone, RustcEncodable, RustcDecodable, PartialEq, Eq, Hash, Show, Copy)]
 pub enum DelimToken {
     /// A round parenthesis: `(` or `)`
@@ -134,9 +134,9 @@ pub enum Token {
     Pound,
     Dollar,
     Question,
-    /// An opening delimeter, eg. `{`
+    /// An opening delimiter, eg. `{`
     OpenDelim(DelimToken),
-    /// A closing delimeter, eg. `}`
+    /// A closing delimiter, eg. `}`
     CloseDelim(DelimToken),
 
     /* Literals */