diff --git a/library/core/src/ptr/alignment.rs b/library/core/src/ptr/alignment.rs index 56c5e6cb72462..846efbc4ebf6c 100644 --- a/library/core/src/ptr/alignment.rs +++ b/library/core/src/ptr/alignment.rs @@ -83,7 +83,7 @@ impl Alignment { unsafe { mem::transmute::(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 {