Skip to content

Commit 9785fd0

Browse files
committed
Use intra-doc links
1 parent a45d90e commit 9785fd0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/core/src/alloc/layout.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl Layout {
8585
/// # Safety
8686
///
8787
/// This function is unsafe as it does not verify the preconditions from
88-
/// [`Layout::from_size_align`](#method.from_size_align).
88+
/// [`Layout::from_size_align`].
8989
#[stable(feature = "alloc_layout", since = "1.28.0")]
9090
#[rustc_const_stable(feature = "alloc_layout", since = "1.28.0")]
9191
#[inline]
@@ -195,8 +195,7 @@ impl Layout {
195195
/// will *still* have size 16.
196196
///
197197
/// Returns an error if the combination of `self.size()` and the given
198-
/// `align` violates the conditions listed in
199-
/// [`Layout::from_size_align`](#method.from_size_align).
198+
/// `align` violates the conditions listed in [`Layout::from_size_align`].
200199
#[stable(feature = "alloc_layout_manipulation", since = "1.44.0")]
201200
#[inline]
202201
pub fn align_to(&self, align: usize) -> Result<Self, LayoutErr> {

0 commit comments

Comments
 (0)