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 @@ -477,7 +477,7 @@ mod prim_pointer {}
477
477
/// an array. Indeed, this provides most of the API for working with arrays.
478
478
/// Slices have a dynamic size and do not coerce to arrays.
479
479
///
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
481
481
/// one element, see [`mem::replace`].
482
482
///
483
483
/// # Examples
@@ -519,7 +519,7 @@ mod prim_pointer {}
519
519
/// for x in &array { }
520
520
/// ```
521
521
///
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:
523
523
///
524
524
/// ```
525
525
/// fn move_away(_: String) { /* Do interesting things. */ }
@@ -534,7 +534,7 @@ mod prim_pointer {}
534
534
/// [`Hash`]: hash::Hash
535
535
/// [`Borrow`]: borrow::Borrow
536
536
/// [`BorrowMut`]: borrow::BorrowMut
537
- ///
537
+ /// [slice pattern]: ../reference/patterns.html#slice-patterns
538
538
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
539
539
mod prim_array { }
540
540
You can’t perform that action at this time.
0 commit comments