about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/diagnostics.rs
diff options
context:
space:
mode:
authorcalciumbe <192480234+calciumbe@users.noreply.github.com>2024-12-29 18:03:37 +0800
committercalciumbe <192480234+calciumbe@users.noreply.github.com>2024-12-29 21:35:02 +0800
commit4f8bebd6b55e0a2986be81e50e3851a3ba973edf (patch)
tree859b8df03038873b20273c26f3a8a99bf89004ec /compiler/rustc_parse/src/parser/diagnostics.rs
parent42591a4cc0ccfc487b5f0813a77c79137fd10eb5 (diff)
downloadrust-4f8bebd6b55e0a2986be81e50e3851a3ba973edf.tar.gz
rust-4f8bebd6b55e0a2986be81e50e3851a3ba973edf.zip
fix: typos
Signed-off-by: calciumbe <192480234+calciumbe@users.noreply.github.com>
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 aab4e1b1afc..278cde5d560 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)