Skip to content

Commit 2a7027a

Browse files
ojedaBennoLossin
authored andcommitted
lib: fix safety comment missing space
While merging the pin-init PR for v6.17 I noticed this typo, thus fix it upstream. Fixes: fdd6bcb ("add `zeroed()` & `Zeroable::zeroed()` functions") Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 781e4e2 commit 2a7027a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,7 @@ pub fn init_zeroed<T: Zeroable>() -> impl Init<T> {
15921592
/// assert_eq!(point.y, 0);
15931593
/// ```
15941594
pub const fn zeroed<T: Zeroable>() -> T {
1595-
// SAFETY:By the type invariants of `Zeroable`, all zeroes is a valid bit pattern for `T`.
1595+
// SAFETY: By the type invariants of `Zeroable`, all zeroes is a valid bit pattern for `T`.
15961596
unsafe { core::mem::zeroed() }
15971597
}
15981598

0 commit comments

Comments
 (0)