Skip to content

Commit 764f64f

Browse files
committed
Reword is_niche_optimization_candidate doc
1 parent b3f6511 commit 764f64f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_lint/src/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ fn get_nullable_type<'tcx>(
10991099
})
11001100
}
11011101

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

0 commit comments

Comments
 (0)