Skip to content

Commit 63de7bb

Browse files
matkladlnicola
andauthored
Update crates/rust-analyzer/src/cli/analysis_stats.rs
Co-authored-by: Laurențiu Nicola <[email protected]>
1 parent ba58530 commit 63de7bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust-analyzer/src/cli/analysis_stats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,6 @@ pub fn analysis_stats(
318318
fn shuffle<T>(rng: &mut Rand32, slice: &mut [T]) {
319319
for i in (1..slice.len()).rev() {
320320
let idx = rng.rand_range(0..i as u32) as usize;
321-
slice.swap(idx, i - 1)
321+
slice.swap(idx, i)
322322
}
323323
}

0 commit comments

Comments
 (0)