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 @@ -510,7 +510,7 @@ mod prim_pointer {}
510510/// an array. Indeed, this provides most of the API for working with arrays.
511511/// Slices have a dynamic size and do not coerce to arrays.
512512///
513- /// You can move elements out of an array with a slice pattern. If you want
513+ /// You can move elements out of an array with a [ slice pattern] . If you want
514514/// one element, see [`mem::replace`].
515515///
516516/// # Examples
@@ -552,7 +552,7 @@ mod prim_pointer {}
552552/// for x in &array { }
553553/// ```
554554///
555- /// You can use a slice pattern to move elements out of an array:
555+ /// You can use a [ slice pattern] to move elements out of an array:
556556///
557557/// ```
558558/// fn move_away(_: String) { /* Do interesting things. */ }
@@ -567,7 +567,7 @@ mod prim_pointer {}
567567/// [`Hash`]: hash::Hash
568568/// [`Borrow`]: borrow::Borrow
569569/// [`BorrowMut`]: borrow::BorrowMut
570- ///
570+ /// [slice pattern]: ../reference/patterns.html#slice-patterns
571571#[ stable( feature = "rust1" , since = "1.0.0" ) ]
572572mod prim_array { }
573573
You can’t perform that action at this time.
0 commit comments