Auto merge of #14154 - lnicola:rand-typos, r=lnicola
minor: Fix a pair of typos
This commit is contained in:
commit
160305b215
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.
|
//! We don't use `rand`, as that's too many things for us.
|
||||||
//!
|
//!
|
||||||
//! Currently, we use oorandom instead, but it misses these two utilities.
|
//! 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
|
//! Perhaps we should switch to `fastrand`, or our own small PRNG, it's not like
|
||||||
//! we need anything move complicatied that xor-shift.
|
//! we need anything more complicated than xor-shift.
|
||||||
|
|
||||||
pub fn shuffle<T>(slice: &mut [T], mut rand_index: impl FnMut(usize) -> usize) {
|
pub fn shuffle<T>(slice: &mut [T], mut rand_index: impl FnMut(usize) -> usize) {
|
||||||
let mut remaining = slice.len() - 1;
|
let mut remaining = slice.len() - 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user