We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1536ab1 commit 63a7fdfCopy full SHA for 63a7fdf
library/core/src/ptr/alignment.rs
@@ -83,15 +83,15 @@ impl Alignment {
83
unsafe { mem::transmute::<usize, Alignment>(align) }
84
}
85
86
- /// Returns the alignment as a [`NonZeroUsize`]
+ /// Returns the alignment as a [`usize`]
87
#[unstable(feature = "ptr_alignment_type", issue = "102070")]
88
#[rustc_const_unstable(feature = "ptr_alignment_type", issue = "102070")]
89
#[inline]
90
pub const fn as_usize(self) -> usize {
91
self.0 as usize
92
93
94
- /// Returns the alignment as a [`usize`]
+ /// Returns the alignment as a [`NonZeroUsize`]
95
96
97
pub const fn as_nonzero(self) -> NonZeroUsize {
0 commit comments