Skip to content

Commit

Permalink
Mention slice patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Jun 8, 2019
1 parent c5295ac commit 1a32a68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/primitive_docs.rs
Expand Up @@ -482,8 +482,8 @@ mod prim_pointer { }
/// an array. Indeed, this provides most of the API for working with 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]
/// for an alternative.
/// You can move elements out of an array with a slice pattern. If you want
/// one element, see [`mem::replace`][replace].
///
/// # Examples
///
Expand Down

0 comments on commit 1a32a68

Please sign in to comment.