Skip to content

Commit b0c8117

Browse files
authored
Rollup merge of #155493 - sorairolake:fix-alignment-doc-link, r=scottmcm
docs(num): fix stale link to `mem::Alignment` This pull request updates a stale link to `mem::Alignment` in `num::IntErrorKind`. In #153178, I added a link to `Alignment` in `IntErrorKind`, but I overlooked that `Alignment` had been moved from `core::ptr` to `core::mem`. Although it is still re-exported in `core::ptr`, this pull request points the link to its canonical location. @rustbot label +A-docs
2 parents 0fc6743 + 8eb89a8 commit b0c8117

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/core/src/num/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub enum IntErrorKind {
122122
/// This variant will be emitted when converting an integer that is not a power of
123123
/// two. This is required in some cases such as constructing an [`Alignment`].
124124
///
125-
/// [`Alignment`]: core::ptr::Alignment "ptr::Alignment"
125+
/// [`Alignment`]: core::mem::Alignment "mem::Alignment"
126126
#[unstable(feature = "try_from_int_error_kind", issue = "153978")]
127127
// Also, #[unstable(feature = "ptr_alignment_type", issue = "102070")]
128128
NotAPowerOfTwo,

0 commit comments

Comments
 (0)