Skip to content

Commit ca0c080

Browse files
committed
Fix typos
1 parent 49431d4 commit ca0c080

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libsyntax/ext/tt/quoted.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use tokenstream;
1919
use std::rc::Rc;
2020

2121
/// Contains the sub-token-trees of a "delimited" token tree, such as the contents of `(`. Note
22-
/// thatthat the delimiter itself might be `NoDelim`.
22+
/// that the delimiter itself might be `NoDelim`.
2323
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
2424
pub struct Delimited {
2525
pub delim: token::DelimToken,
@@ -76,7 +76,7 @@ pub struct SequenceRepetition {
7676
pub enum KleeneOp {
7777
/// Kleene star (`*`) for zero or more repetitions
7878
ZeroOrMore,
79-
/// Kleene star (`+`) for one or more repetitions
79+
/// Kleene plus (`+`) for one or more repetitions
8080
OneOrMore,
8181
}
8282

@@ -261,7 +261,7 @@ where
261261
}
262262
// Parse the contents of the sequence itself
263263
let sequence = parse(delimited.tts.into(), expect_matchers, sess);
264-
// Get the Kleen operator and optional separator
264+
// Get the Kleene operator and optional separator
265265
let (separator, op) = parse_sep_and_kleene_op(trees, span, sess);
266266
// Count the number of captured "names" (i.e. named metavars)
267267
let name_captures = macro_parser::count_names(&sequence);

0 commit comments

Comments
 (0)