Reword is_niche_optimization_candidate doc

This commit is contained in:
Arvind Mukund 2024-03-18 19:47:43 -07:00
parent b3f6511755
commit 764f64f0d7

View file

@ -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”). /// - Is a zero-sized type with alignment 1 (a “1-ZST”).
/// - Has no fields. /// - Has no fields.
/// - Does not have the `#[non_exhaustive]` attribute. /// - Does not have the `#[non_exhaustive]` attribute.