@@ -2807,14 +2807,14 @@ impl<'a> Parser<'a> {
2807
2807
let span = Span { hi : close_span. hi , ..pre_span } ;
2808
2808
2809
2809
match self . token {
2810
- // Correct delmiter .
2810
+ // Correct delimiter .
2811
2811
token:: CloseDelim ( d) if d == delim => {
2812
2812
self . open_braces . pop ( ) . unwrap ( ) ;
2813
2813
2814
2814
// Parse the close delimiter.
2815
2815
self . bump ( ) ;
2816
2816
}
2817
- // Incorect delimiter.
2817
+ // Incorrect delimiter.
2818
2818
token:: CloseDelim ( other) => {
2819
2819
let token_str = self . this_token_to_string ( ) ;
2820
2820
let mut err = self . diagnostic ( ) . struct_span_err ( self . span ,
@@ -2829,9 +2829,9 @@ impl<'a> Parser<'a> {
2829
2829
2830
2830
self . open_braces . pop ( ) . unwrap ( ) ;
2831
2831
2832
- // If the incorrect delimter matches an earlier opening
2832
+ // If the incorrect delimiter matches an earlier opening
2833
2833
// 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.
2835
2835
// E.g., we try to recover from:
2836
2836
// fn foo() {
2837
2837
// bar(baz(
@@ -2859,7 +2859,7 @@ impl<'a> Parser<'a> {
2859
2859
// invariants: the current token is not a left-delimiter,
2860
2860
// not an EOF, and not the desired right-delimiter (if
2861
2861
// it were, parse_seq_to_before_end would have prevented
2862
- // reaching this point.
2862
+ // reaching this point) .
2863
2863
maybe_whole ! ( deref self , NtTT ) ;
2864
2864
match self . token {
2865
2865
token:: CloseDelim ( _) => {
0 commit comments