Skip to content

Commit dd8ee17

Browse files
committed
compiler: fix typo
Signed-off-by: calciumbe <[email protected]>
1 parent 15be985 commit dd8ee17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_parse/src/parser/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ impl<'a> Parser<'a> {
755755
// When there are a few keywords in the last ten elements of `self.expected_token_types`
756756
// and the current token is an identifier, it's probably a misspelled keyword. This handles
757757
// code like `async Move {}`, misspelled `if` in match guard, misspelled `else` in
758-
// `if`-`else` and mispelled `where` in a where clause.
758+
// `if`-`else` and misspelled `where` in a where clause.
759759
if !expected_keywords.is_empty()
760760
&& !curr_ident.is_used_keyword()
761761
&& let Some(misspelled_kw) = find_similar_kw(curr_ident, &expected_keywords)

0 commit comments

Comments
 (0)