Skip to content

Commit 7d4e9b3

Browse files
joshlfjoshtriplett
andauthored
Update library/core/src/num/nonzero.rs
Co-authored-by: Josh Triplett <[email protected]>
1 parent 7f88cd2 commit 7d4e9b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/num/nonzero.rs

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ 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.
4244
#[$stability]
4345
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
4446
#[repr(transparent)]

0 commit comments

Comments
 (0)