Skip to content

Commit 2500b6d

Browse files
committed
Link to primitive instead of module
1 parent 9785fd0 commit 2500b6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/core/src/alloc/layout.rs

+2-1
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 [`crate::slice`], then the length of the slice tail must be an intialized
148+
/// - a [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,6 +158,7 @@ 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
161162
/// [trait object]: ../../book/ch17-02-trait-objects.html
162163
/// [extern type]: ../../unstable-book/language-features/extern-types.html
163164
#[unstable(feature = "layout_for_ptr", issue = "69835")]

0 commit comments

Comments
 (0)