RIMOV core::rand

This commit is contained in:
Ben Striegel 2013-02-11 23:04:10 -05:00
parent 2d2ed075e3
commit 3a3f7b8e55
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ impl Rng {
}
/// Shuffle a mutable vec in place
fn shuffle_mut<T>(values: &[mut T]) {
fn shuffle_mut<T>(values: &mut [T]) {
let mut i = values.len();
while i >= 2u {
// invariant: elements with index >= i have been locked in place.