about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis
diff options
context:
space:
mode:
authorTechVest <techdashen@qq.com>2024-04-17 15:05:56 +0800
committerTechVest <techdashen@qq.com>2024-04-25 10:47:24 +0800
commit45df09b7deaeda5a816d9e447e5cca7b928b60c6 (patch)
tree66d00edc7770527432ebea4cd021be4a6338cee3 /compiler/rustc_hir_analysis
parentb7581490aaf964d4a34121d75be0fc49a2445911 (diff)
downloadrust-45df09b7deaeda5a816d9e447e5cca7b928b60c6.tar.gz
rust-45df09b7deaeda5a816d9e447e5cca7b928b60c6.zip
Fix some typos in comments
Signed-off-by: TechVest <techdashen@qq.com>
Diffstat (limited to 'compiler/rustc_hir_analysis')
-rw-r--r--compiler/rustc_hir_analysis/src/collect.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/collect.rs b/compiler/rustc_hir_analysis/src/collect.rs
index 1085caa310b..599f25147ce 100644
--- a/compiler/rustc_hir_analysis/src/collect.rs
+++ b/compiler/rustc_hir_analysis/src/collect.rs
@@ -992,7 +992,7 @@ fn lower_variant(
         .inspect(|f| {
             has_unnamed_fields |= f.ident.name == kw::Underscore;
             // We only check named ADT here because anonymous ADTs are checked inside
-            // the nammed ADT in which they are defined.
+            // the named ADT in which they are defined.
             if !is_anonymous {
                 field_uniqueness_check_ctx.check_field(f);
             }