diff options
| author | Denis Vasilik <contact@denisvasilik.com> | 2020-08-21 21:41:43 +0200 |
|---|---|---|
| committer | Denis Vasilik <contact@denisvasilik.com> | 2020-08-21 21:41:43 +0200 |
| commit | 9785fd088253c04aeec6f9fa716d3d50748a6e37 (patch) | |
| tree | 020e742d219f9c666af7d76abe1aef1ef2c0a2cb | |
| parent | a45d90ec23a94ffa39def3e1e1136d69f45f24ba (diff) | |
| download | rust-9785fd088253c04aeec6f9fa716d3d50748a6e37.tar.gz rust-9785fd088253c04aeec6f9fa716d3d50748a6e37.zip | |
Use intra-doc links
| -rw-r--r-- | library/core/src/alloc/layout.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/library/core/src/alloc/layout.rs b/library/core/src/alloc/layout.rs index 0b680d3c3be..95857a6c544 100644 --- a/library/core/src/alloc/layout.rs +++ b/library/core/src/alloc/layout.rs @@ -85,7 +85,7 @@ impl Layout { /// # Safety /// /// This function is unsafe as it does not verify the preconditions from - /// [`Layout::from_size_align`](#method.from_size_align). + /// [`Layout::from_size_align`]. #[stable(feature = "alloc_layout", since = "1.28.0")] #[rustc_const_stable(feature = "alloc_layout", since = "1.28.0")] #[inline] @@ -195,8 +195,7 @@ impl Layout { /// 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<Self, LayoutErr> { |
