fix: typos
Signed-off-by: calciumbe <192480234+calciumbe@users.noreply.github.com>
This commit is contained in:
parent
42591a4cc0
commit
4f8bebd6b5
4 changed files with 4 additions and 4 deletions
|
@ -755,7 +755,7 @@ impl<'a> Parser<'a> {
|
|||
// When there are a few keywords in the last ten elements of `self.expected_token_types`
|
||||
// and the current token is an identifier, it's probably a misspelled keyword. This handles
|
||||
// code like `async Move {}`, misspelled `if` in match guard, misspelled `else` in
|
||||
// `if`-`else` and mispelled `where` in a where clause.
|
||||
// `if`-`else` and misspelled `where` in a where clause.
|
||||
if !expected_keywords.is_empty()
|
||||
&& !curr_ident.is_used_keyword()
|
||||
&& let Some(misspelled_kw) = find_similar_kw(curr_ident, &expected_keywords)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue