about summary refs log tree commit diff
path: root/src/libsyntax/ext/tt
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2018-11-11 20:52:36 +0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2018-11-11 20:52:36 +0700
commita62af858e003e4077f5f4554c3235a4c82636b7e (patch)
treed8890443495ca8b5613f51879695744815d469e4 /src/libsyntax/ext/tt
parentb76ee83254ec0398da554f25c2168d917ba60f1c (diff)
downloadrust-a62af858e003e4077f5f4554c3235a4c82636b7e.tar.gz
rust-a62af858e003e4077f5f4554c3235a4c82636b7e.zip
Fix typos.
Diffstat (limited to 'src/libsyntax/ext/tt')
-rw-r--r--src/libsyntax/ext/tt/macro_parser.rs2
-rw-r--r--src/libsyntax/ext/tt/quoted.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs
index 06c1d58070e..f2b1c359c0e 100644
--- a/src/libsyntax/ext/tt/macro_parser.rs
+++ b/src/libsyntax/ext/tt/macro_parser.rs
@@ -122,7 +122,7 @@ impl<'a> TokenTreeOrTokenTreeSlice<'a> {
         }
     }
 
-    /// The the `index`-th token tree of `self`.
+    /// The `index`-th token tree of `self`.
     fn get_tt(&self, index: usize) -> TokenTree {
         match *self {
             TtSeq(ref v) => v[index].clone(),
diff --git a/src/libsyntax/ext/tt/quoted.rs b/src/libsyntax/ext/tt/quoted.rs
index 74363f3e5f7..21848674831 100644
--- a/src/libsyntax/ext/tt/quoted.rs
+++ b/src/libsyntax/ext/tt/quoted.rs
@@ -496,7 +496,7 @@ where
                         return (None, KleeneOp::ZeroOrMore);
                     }
 
-                    // #2 is a Kleene op, which is the the only valid option
+                    // #2 is a Kleene op, which is the only valid option
                     Ok(Ok((op, _))) => {
                         // Warn that `?` as a separator will be deprecated
                         sess.buffer_lint(