Closed
Description
The documentation's description of the return values is slightly incorrect.
rust/library/core/src/slice/mod.rs
Lines 2631 to 2633 in c845946
The following code however, produces ([1, 1], 1, [1, 1])
:
let mut v = [1i32; 5];
let (x, y, z) = v.select_nth_unstable(2);
(playground link: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=3c68d77916745c6442866324d675755d)