Skip to content

Commit 2c93720

Browse files
c4rlojseyfried
authored andcommitted
parser.rs: fix typos in comments
1 parent 57ef015 commit 2c93720

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2807,14 +2807,14 @@ impl<'a> Parser<'a> {
28072807
let span = Span { hi: close_span.hi, ..pre_span };
28082808

28092809
match self.token {
2810-
// Correct delmiter.
2810+
// Correct delimiter.
28112811
token::CloseDelim(d) if d == delim => {
28122812
self.open_braces.pop().unwrap();
28132813

28142814
// Parse the close delimiter.
28152815
self.bump();
28162816
}
2817-
// Incorect delimiter.
2817+
// Incorrect delimiter.
28182818
token::CloseDelim(other) => {
28192819
let token_str = self.this_token_to_string();
28202820
let mut err = self.diagnostic().struct_span_err(self.span,
@@ -2829,9 +2829,9 @@ impl<'a> Parser<'a> {
28292829

28302830
self.open_braces.pop().unwrap();
28312831

2832-
// If the incorrect delimter matches an earlier opening
2832+
// If the incorrect delimiter matches an earlier opening
28332833
// delimiter, then don't consume it (it can be used to
2834-
// close the earlier one)Otherwise, consume it.
2834+
// close the earlier one). Otherwise, consume it.
28352835
// E.g., we try to recover from:
28362836
// fn foo() {
28372837
// bar(baz(
@@ -2859,7 +2859,7 @@ impl<'a> Parser<'a> {
28592859
// invariants: the current token is not a left-delimiter,
28602860
// not an EOF, and not the desired right-delimiter (if
28612861
// it were, parse_seq_to_before_end would have prevented
2862-
// reaching this point.
2862+
// reaching this point).
28632863
maybe_whole!(deref self, NtTT);
28642864
match self.token {
28652865
token::CloseDelim(_) => {

0 commit comments

Comments
 (0)