Skip to content

Commit 450598a

Browse files
committed
Specify Option<NonZero> layout and bit validity
1 parent 9c699a4 commit 450598a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/core/src/num/nonzero.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ macro_rules! nonzero_integers {
3939
///
4040
#[doc = concat!("`", stringify!($Ty), "` is guaranteed to have the same layout and bit validity as `", stringify!($Int), "`")]
4141
/// with the exception that `0` is not a valid instance.
42-
#[doc = concat!("`Option<", stringify!($Ty), ">` is guaranteed to be compatible with `", stringify!($Int), "`,")]
43-
/// including in FFI.
42+
#[doc = concat!("`Option<", stringify!($Ty), ">` is guaranteed to have the same layout and bit validity as `", stringify!($Int), "`.")]
4443
#[$stability]
4544
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
4645
#[repr(transparent)]

0 commit comments

Comments
 (0)