File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -477,7 +477,7 @@ mod prim_pointer {}
477477/// an array. Indeed, this provides most of the API for working with arrays.
478478/// Slices have a dynamic size and do not coerce to arrays.
479479///
480- /// You can move elements out of an array with a slice pattern. If you want
480+ /// You can move elements out of an array with a [ slice pattern] . If you want
481481/// one element, see [`mem::replace`].
482482///
483483/// # Examples
@@ -519,7 +519,7 @@ mod prim_pointer {}
519519/// for x in &array { }
520520/// ```
521521///
522- /// You can use a slice pattern to move elements out of an array:
522+ /// You can use a [ slice pattern] to move elements out of an array:
523523///
524524/// ```
525525/// fn move_away(_: String) { /* Do interesting things. */ }
@@ -534,7 +534,7 @@ mod prim_pointer {}
534534/// [`Hash`]: hash::Hash
535535/// [`Borrow`]: borrow::Borrow
536536/// [`BorrowMut`]: borrow::BorrowMut
537- ///
537+ /// [slice pattern]: ../reference/patterns.html#slice-patterns
538538#[ stable( feature = "rust1" , since = "1.0.0" ) ]
539539mod prim_array { }
540540
You can’t perform that action at this time.
0 commit comments