diff options
| author | Denis Vasilik <contact@denisvasilik.com> | 2020-08-21 21:35:52 +0200 |
|---|---|---|
| committer | Denis Vasilik <contact@denisvasilik.com> | 2020-08-21 21:35:52 +0200 |
| commit | a45d90ec23a94ffa39def3e1e1136d69f45f24ba (patch) | |
| tree | b30a4d62b523673d8fd065c6b52c41891781cf2d | |
| parent | efec7cde9339068f7289853a112da51025c2ef65 (diff) | |
| download | rust-a45d90ec23a94ffa39def3e1e1136d69f45f24ba.tar.gz rust-a45d90ec23a94ffa39def3e1e1136d69f45f24ba.zip | |
Use intra-doc links
| -rw-r--r-- | library/core/src/alloc/layout.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/core/src/alloc/layout.rs b/library/core/src/alloc/layout.rs index 7129f0f2402..0b680d3c3be 100644 --- a/library/core/src/alloc/layout.rs +++ b/library/core/src/alloc/layout.rs @@ -145,7 +145,7 @@ impl Layout { /// /// - If `T` is `Sized`, this function is always safe to call. /// - If the unsized tail of `T` is: - /// - a [slice], then the length of the slice tail must be an intialized + /// - a [`crate::slice`], then the length of the slice tail must be an intialized /// integer, and the size of the *entire value* /// (dynamic tail length + statically sized prefix) must fit in `isize`. /// - a [trait object], then the vtable part of the pointer must point @@ -158,7 +158,6 @@ impl Layout { /// [`Layout::for_value`] on a reference to an extern type tail. /// - otherwise, it is conservatively not allowed to call this function. /// - /// [slice]: ../../std/primitive.slice.html /// [trait object]: ../../book/ch17-02-trait-objects.html /// [extern type]: ../../unstable-book/language-features/extern-types.html #[unstable(feature = "layout_for_ptr", issue = "69835")] |
