Skip to content

Commit d1bcfbc

Browse files
committed
Reword is_niche_optimization_candidate doc
1 parent ef4ce01 commit d1bcfbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_lint/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ fn get_nullable_type<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> Option<Ty<'tcx>>
10541054
})
10551055
}
10561056

1057-
/// A type is niche_optimization_candiate iff:
1057+
/// A type is niche-optimization candidate iff:
10581058
/// - Is a zero-sized type with alignment 1 (a “1-ZST”).
10591059
/// - Has no fields.
10601060
/// - Does not have the `#[non_exhaustive]` attribute.

0 commit comments

Comments
 (0)