Skip to content

Commit a45d90e

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/core/src/alloc/layout.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ impl Layout {
145145
///
146146
/// - If `T` is `Sized`, this function is always safe to call.
147147
/// - If the unsized tail of `T` is:
148-
/// - a [slice], then the length of the slice tail must be an intialized
148+
/// - a [`crate::slice`], then the length of the slice tail must be an intialized
149149
/// integer, and the size of the *entire value*
150150
/// (dynamic tail length + statically sized prefix) must fit in `isize`.
151151
/// - a [trait object], then the vtable part of the pointer must point
@@ -158,7 +158,6 @@ impl Layout {
158158
/// [`Layout::for_value`] on a reference to an extern type tail.
159159
/// - otherwise, it is conservatively not allowed to call this function.
160160
///
161-
/// [slice]: ../../std/primitive.slice.html
162161
/// [trait object]: ../../book/ch17-02-trait-objects.html
163162
/// [extern type]: ../../unstable-book/language-features/extern-types.html
164163
#[unstable(feature = "layout_for_ptr", issue = "69835")]

0 commit comments

Comments
 (0)