diff options
| -rw-r--r-- | library/core/src/ptr/alignment.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/ptr/alignment.rs b/library/core/src/ptr/alignment.rs index 56c5e6cb724..846efbc4ebf 100644 --- a/library/core/src/ptr/alignment.rs +++ b/library/core/src/ptr/alignment.rs @@ -83,7 +83,7 @@ impl Alignment { unsafe { mem::transmute::<usize, Alignment>(align) } } - /// Returns the alignment as a [`NonZeroUsize`] + /// Returns the alignment as a [`usize`] #[unstable(feature = "ptr_alignment_type", issue = "102070")] #[rustc_const_unstable(feature = "ptr_alignment_type", issue = "102070")] #[inline] @@ -91,7 +91,7 @@ impl Alignment { self.0 as usize } - /// Returns the alignment as a [`usize`] + /// Returns the alignment as a [`NonZeroUsize`] #[unstable(feature = "ptr_alignment_type", issue = "102070")] #[inline] pub const fn as_nonzero(self) -> NonZeroUsize { |
