about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArvind Mukund <armu30@gmail.com>2024-03-18 19:47:43 -0700
committerArvind Mukund <armu30@gmail.com>2024-04-23 21:27:45 -0700
commit764f64f0d7e8a51adb05f29bee11909b4f446579 (patch)
tree8eb309a7b456e6c41bef1ddf605f5731a8004ece
parentb3f6511755228ee3ff2e59c69f575454f6eb3108 (diff)
downloadrust-764f64f0d7e8a51adb05f29bee11909b4f446579.tar.gz
rust-764f64f0d7e8a51adb05f29bee11909b4f446579.zip
Reword `is_niche_optimization_candidate` doc
-rw-r--r--compiler/rustc_lint/src/types.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/types.rs b/compiler/rustc_lint/src/types.rs
index d491de7609b..5db5f4ab9ee 100644
--- a/compiler/rustc_lint/src/types.rs
+++ b/compiler/rustc_lint/src/types.rs
@@ -1099,7 +1099,7 @@ fn get_nullable_type<'tcx>(
     })
 }
 
-/// A type is niche_optimization_candiate iff:
+/// A type is niche-optimization candidate iff:
 /// - Is a zero-sized type with alignment 1 (a “1-ZST”).
 /// - Has no fields.
 /// - Does not have the `#[non_exhaustive]` attribute.