Mention slice patterns
This commit is contained in:
parent
c5295ac64a
commit
1a32a68f38
1 changed files with 2 additions and 2 deletions
|
@ -482,8 +482,8 @@ mod prim_pointer { }
|
||||||
/// an array. Indeed, this provides most of the API for working with arrays.
|
/// an array. Indeed, this provides most of the API for working with arrays.
|
||||||
/// Slices have a dynamic size and do not coerce to arrays.
|
/// Slices have a dynamic size and do not coerce to arrays.
|
||||||
///
|
///
|
||||||
/// There is no way to move elements out of an array. See [`mem::replace`][replace]
|
/// You can move elements out of an array with a slice pattern. If you want
|
||||||
/// for an alternative.
|
/// one element, see [`mem::replace`][replace].
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue