fix: typos

Signed-off-by: calciumbe <192480234+calciumbe@users.noreply.github.com>
This commit is contained in:
calciumbe 2024-12-29 18:03:37 +08:00
parent 42591a4cc0
commit 4f8bebd6b5
No known key found for this signature in database
GPG key ID: 92A6C8D87253B95C
4 changed files with 4 additions and 4 deletions

View file

@ -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)