diff --git a/compiler/rustc_lint/src/types.rs b/compiler/rustc_lint/src/types.rs index d491de7609be..5db5f4ab9eed 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.