We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9a5e454 + 3bf9253 commit f36e4fbCopy full SHA for f36e4fb
1 file changed
src/lib.rs
@@ -1592,7 +1592,7 @@ pub fn init_zeroed<T: Zeroable>() -> impl Init<T> {
1592
/// assert_eq!(point.y, 0);
1593
/// ```
1594
pub const fn zeroed<T: Zeroable>() -> T {
1595
- // SAFETY:By the type invariants of `Zeroable`, all zeroes is a valid bit pattern for `T`.
+ // SAFETY: By the type invariants of `Zeroable`, all zeroes is a valid bit pattern for `T`.
1596
unsafe { core::mem::zeroed() }
1597
}
1598
0 commit comments