We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5295ac commit 1a32a68Copy full SHA for 1a32a68
src/libstd/primitive_docs.rs
@@ -482,8 +482,8 @@ mod prim_pointer { }
482
/// an array. Indeed, this provides most of the API for working with arrays.
483
/// Slices have a dynamic size and do not coerce to arrays.
484
///
485
-/// There is no way to move elements out of an array. See [`mem::replace`][replace]
486
-/// for an alternative.
+/// You can move elements out of an array with a slice pattern. If you want
+/// one element, see [`mem::replace`][replace].
487
488
/// # Examples
489
0 commit comments