about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/diagnostics.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-12-29 21:18:07 +0100
committerGitHub <noreply@github.com>2024-12-29 21:18:07 +0100
commit344a61e69b6b06aa98b6ba21cac980929507d403 (patch)
treed44d9dfcd9ce3732d5d6d8f71868654a6b08f27a /compiler/rustc_parse/src/parser/diagnostics.rs
parentd45cb76edc59e49c408d5ba4787bd2f955890cd7 (diff)
parent4f8bebd6b55e0a2986be81e50e3851a3ba973edf (diff)
downloadrust-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.rs2
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)