mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
Fix a pair of typos
This commit is contained in:
parent
89b9940491
commit
6e5ec0b3ce
2 changed files with 3 additions and 3 deletions
BIN
crates/rust-analyzer/default_12483297303756020505_0.profraw
Normal file
BIN
crates/rust-analyzer/default_12483297303756020505_0.profraw
Normal file
Binary file not shown.
|
@ -1,8 +1,8 @@
|
|||
//! We don't use `rand`, as that's too many things for us.
|
||||
//!
|
||||
//! Currently, we use oorandom instead, but it misses these two utilities.
|
||||
//! Perhaps we should switch to `fastrand`, or our own small prng, it's not like
|
||||
//! we need anything move complicatied that xor-shift.
|
||||
//! We currently use oorandom instead, but it's missing these two utilities.
|
||||
//! Perhaps we should switch to `fastrand`, or our own small PRNG, it's not like
|
||||
//! we need anything more complicated than xor-shift.
|
||||
|
||||
pub fn shuffle<T>(slice: &mut [T], mut rand_index: impl FnMut(usize) -> usize) {
|
||||
let mut remaining = slice.len() - 1;
|
||||
|
|
Loading…
Reference in a new issue