We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15be985 commit dd8ee17Copy full SHA for dd8ee17
compiler/rustc_parse/src/parser/diagnostics.rs
@@ -755,7 +755,7 @@ impl<'a> Parser<'a> {
755
// When there are a few keywords in the last ten elements of `self.expected_token_types`
756
// and the current token is an identifier, it's probably a misspelled keyword. This handles
757
// code like `async Move {}`, misspelled `if` in match guard, misspelled `else` in
758
- // `if`-`else` and mispelled `where` in a where clause.
+ // `if`-`else` and misspelled `where` in a where clause.
759
if !expected_keywords.is_empty()
760
&& !curr_ident.is_used_keyword()
761
&& let Some(misspelled_kw) = find_similar_kw(curr_ident, &expected_keywords)
0 commit comments