Closed
Description
The array docs currently say
rust/src/libstd/primitive_docs.rs
Lines 485 to 486 in 6312b89
But now that slice patterns are stable, that's not quite true. It would be good for the docs to mention that you can move all items out of an array using a slice pattern. (And continue to mention replace
as an option for people who only want one item.)