File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ impl Layout {
145
145
///
146
146
/// - If `T` is `Sized`, this function is always safe to call.
147
147
/// - 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
149
149
/// integer, and the size of the *entire value*
150
150
/// (dynamic tail length + statically sized prefix) must fit in `isize`.
151
151
/// - a [trait object], then the vtable part of the pointer must point
@@ -158,6 +158,7 @@ impl Layout {
158
158
/// [`Layout::for_value`] on a reference to an extern type tail.
159
159
/// - otherwise, it is conservatively not allowed to call this function.
160
160
///
161
+ /// [slice]: ../../std/primitive.slice.html
161
162
/// [trait object]: ../../book/ch17-02-trait-objects.html
162
163
/// [extern type]: ../../unstable-book/language-features/extern-types.html
163
164
#[ unstable( feature = "layout_for_ptr" , issue = "69835" ) ]
You can’t perform that action at this time.
0 commit comments