diff options
| author | Joshua Liebow-Feeser <joshlf@users.noreply.github.com> | 2022-10-05 09:40:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-05 09:40:50 -0700 |
| commit | 7d4e9b3637320be8d4f2efe350cd71b9312e9d83 (patch) | |
| tree | 512c145954adffc8c01acaf19f8b1762d4094b08 | |
| parent | 7f88cd20ff5d3616b7bab5a4b3b0c942e91904a9 (diff) | |
| download | rust-7d4e9b3637320be8d4f2efe350cd71b9312e9d83.tar.gz rust-7d4e9b3637320be8d4f2efe350cd71b9312e9d83.zip | |
Update library/core/src/num/nonzero.rs
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
| -rw-r--r-- | library/core/src/num/nonzero.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/core/src/num/nonzero.rs b/library/core/src/num/nonzero.rs index 1e5cfdd56ca..df438f88cee 100644 --- a/library/core/src/num/nonzero.rs +++ b/library/core/src/num/nonzero.rs @@ -39,6 +39,8 @@ 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. #[$stability] #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] #[repr(transparent)] |
