Skip to content

Commit

Permalink
Specify Option<NonZero> layout and bit validity
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlf committed Aug 20, 2023
1 parent 9c699a4 commit 450598a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/core/src/num/nonzero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ macro_rules! nonzero_integers {
///
#[doc = concat!("`", stringify!($Ty), "` is guaranteed to have the same layout and bit validity as `", stringify!($Int), "`")]
/// with the exception that `0` is not a valid instance.
#[doc = concat!("`Option<", stringify!($Ty), ">` is guaranteed to be compatible with `", stringify!($Int), "`,")]
/// including in FFI.
#[doc = concat!("`Option<", stringify!($Ty), ">` is guaranteed to have the same layout and bit validity as `", stringify!($Int), "`.")]
#[$stability]
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
#[repr(transparent)]
Expand Down

0 comments on commit 450598a

Please sign in to comment.