File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ mod prim_pointer {}
510
510
/// an array. Indeed, this provides most of the API for working with arrays.
511
511
/// Slices have a dynamic size and do not coerce to arrays.
512
512
///
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
514
514
/// one element, see [`mem::replace`].
515
515
///
516
516
/// # Examples
@@ -552,7 +552,7 @@ mod prim_pointer {}
552
552
/// for x in &array { }
553
553
/// ```
554
554
///
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:
556
556
///
557
557
/// ```
558
558
/// fn move_away(_: String) { /* Do interesting things. */ }
@@ -567,7 +567,7 @@ mod prim_pointer {}
567
567
/// [`Hash`]: hash::Hash
568
568
/// [`Borrow`]: borrow::Borrow
569
569
/// [`BorrowMut`]: borrow::BorrowMut
570
- ///
570
+ /// [slice pattern]: ../reference/patterns.html#slice-patterns
571
571
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
572
572
mod prim_array { }
573
573
You can’t perform that action at this time.
0 commit comments