From 8eb89a8b06d50b848c9e517942fd388c5eee4fea Mon Sep 17 00:00:00 2001 From: Shun Sakai Date: Sun, 19 Apr 2026 02:07:18 +0900 Subject: [PATCH] docs(num): fix stale link to `mem::Alignment` --- library/core/src/num/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/num/error.rs b/library/core/src/num/error.rs index f01c0f92567ae..8cd065630cd88 100644 --- a/library/core/src/num/error.rs +++ b/library/core/src/num/error.rs @@ -122,7 +122,7 @@ pub enum IntErrorKind { /// This variant will be emitted when converting an integer that is not a power of /// two. This is required in some cases such as constructing an [`Alignment`]. /// - /// [`Alignment`]: core::ptr::Alignment "ptr::Alignment" + /// [`Alignment`]: core::mem::Alignment "mem::Alignment" #[unstable(feature = "try_from_int_error_kind", issue = "153978")] // Also, #[unstable(feature = "ptr_alignment_type", issue = "102070")] NotAPowerOfTwo,