From 3bf925387802a465df217e91f1b02435f3d3030e Mon Sep 17 00:00:00 2001 From: Miguel Ojeda Date: Sun, 13 Jul 2025 22:48:29 +0200 Subject: [PATCH] lib: fix safety comment missing space While merging the pin-init PR for v6.17 I noticed this typo, thus fix it upstream. Fixes: fdd6bcb10939 ("add `zeroed()` & `Zeroable::zeroed()` functions") Signed-off-by: Miguel Ojeda --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 62e013a..8adc79e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1592,7 +1592,7 @@ pub fn init_zeroed() -> impl Init { /// assert_eq!(point.y, 0); /// ``` pub const fn zeroed() -> T { - // 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`. unsafe { core::mem::zeroed() } }