diff options
| author | Mark Mansi <markm@cs.wisc.edu> | 2018-01-21 16:03:47 -0600 |
|---|---|---|
| committer | Mark Mansi <markm@cs.wisc.edu> | 2018-01-21 16:03:47 -0600 |
| commit | ca0c0805693b08566cf118b676533be776005494 (patch) | |
| tree | 0600325f9d0cb02aa2e708c666d55e09736709b3 | |
| parent | 49431d49661af7a3e55743a398346903ef58f20f (diff) | |
| download | rust-ca0c0805693b08566cf118b676533be776005494.tar.gz rust-ca0c0805693b08566cf118b676533be776005494.zip | |
Fix typos
| -rw-r--r-- | src/libsyntax/ext/tt/quoted.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ext/tt/quoted.rs b/src/libsyntax/ext/tt/quoted.rs index 606dfcd58a2..61dc3d32f20 100644 --- a/src/libsyntax/ext/tt/quoted.rs +++ b/src/libsyntax/ext/tt/quoted.rs @@ -19,7 +19,7 @@ use tokenstream; use std::rc::Rc; /// Contains the sub-token-trees of a "delimited" token tree, such as the contents of `(`. Note -/// thatthat the delimiter itself might be `NoDelim`. +/// that the delimiter itself might be `NoDelim`. #[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)] pub struct Delimited { pub delim: token::DelimToken, @@ -76,7 +76,7 @@ pub struct SequenceRepetition { pub enum KleeneOp { /// Kleene star (`*`) for zero or more repetitions ZeroOrMore, - /// Kleene star (`+`) for one or more repetitions + /// Kleene plus (`+`) for one or more repetitions OneOrMore, } @@ -261,7 +261,7 @@ where } // Parse the contents of the sequence itself let sequence = parse(delimited.tts.into(), expect_matchers, sess); - // Get the Kleen operator and optional separator + // Get the Kleene operator and optional separator let (separator, op) = parse_sep_and_kleene_op(trees, span, sess); // Count the number of captured "names" (i.e. named metavars) let name_captures = macro_parser::count_names(&sequence); |
