File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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" ) ]
You can’t perform that action at this time.
0 commit comments