diff options
author | Aleksey Kladov <[email protected]> | 2020-07-29 18:56:54 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-29 18:56:54 +0100 |
commit | 63de7bbb5b4cfb4797adb303ce2a48cf8ff2cff4 (patch) | |
tree | 4de0bef2ca0215da21322427062d1005cb0167e6 /crates | |
parent | ba585309ec9ba6102038cd16c3fff107dfc1f56c (diff) |
Update crates/rust-analyzer/src/cli/analysis_stats.rs
Co-authored-by: Laurențiu Nicola <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/src/cli/analysis_stats.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/cli/analysis_stats.rs b/crates/rust-analyzer/src/cli/analysis_stats.rs index 6b7c08971..66d201ba6 100644 --- a/crates/rust-analyzer/src/cli/analysis_stats.rs +++ b/crates/rust-analyzer/src/cli/analysis_stats.rs | |||
@@ -318,6 +318,6 @@ pub fn analysis_stats( | |||
318 | fn shuffle<T>(rng: &mut Rand32, slice: &mut [T]) { | 318 | fn shuffle<T>(rng: &mut Rand32, slice: &mut [T]) { |
319 | for i in (1..slice.len()).rev() { | 319 | for i in (1..slice.len()).rev() { |
320 | let idx = rng.rand_range(0..i as u32) as usize; | 320 | let idx = rng.rand_range(0..i as u32) as usize; |
321 | slice.swap(idx, i - 1) | 321 | slice.swap(idx, i) |
322 | } | 322 | } |
323 | } | 323 | } |