diff --git a/library/core/src/alloc/layout.rs b/library/core/src/alloc/layout.rs index 0b680d3c3be2..95857a6c5441 100644 --- a/library/core/src/alloc/layout.rs +++ b/library/core/src/alloc/layout.rs @@ -85,7 +85,7 @@ pub const fn from_size_align(size: usize, align: usize) -> Result NonNull { /// will *still* have size 16. /// /// Returns an error if the combination of `self.size()` and the given - /// `align` violates the conditions listed in - /// [`Layout::from_size_align`](#method.from_size_align). + /// `align` violates the conditions listed in [`Layout::from_size_align`]. #[stable(feature = "alloc_layout_manipulation", since = "1.44.0")] #[inline] pub fn align_to(&self, align: usize) -> Result {