diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-12-29 21:18:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-29 21:18:07 +0100 |
| commit | 344a61e69b6b06aa98b6ba21cac980929507d403 (patch) | |
| tree | d44d9dfcd9ce3732d5d6d8f71868654a6b08f27a /compiler/rustc_parse/src/parser/diagnostics.rs | |
| parent | d45cb76edc59e49c408d5ba4787bd2f955890cd7 (diff) | |
| parent | 4f8bebd6b55e0a2986be81e50e3851a3ba973edf (diff) | |
| download | rust-344a61e69b6b06aa98b6ba21cac980929507d403.tar.gz rust-344a61e69b6b06aa98b6ba21cac980929507d403.zip | |
Rollup merge of #134884 - calciumbe:patch1, r=jieyouxu
Fix typos Hello, I fix some typos in docs and comments. Thank you very much.
Diffstat (limited to 'compiler/rustc_parse/src/parser/diagnostics.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/diagnostics.rs b/compiler/rustc_parse/src/parser/diagnostics.rs index 7df7e732925..9ee6c2fae1a 100644 --- a/compiler/rustc_parse/src/parser/diagnostics.rs +++ b/compiler/rustc_parse/src/parser/diagnostics.rs @@ -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) |
