Auto merge of #14154 - lnicola:rand-typos, r=lnicola

minor: Fix a pair of typos
This commit is contained in:
bors 2023-02-15 12:11:36 +00:00
commit 160305b215
2 changed files with 3 additions and 3 deletions

View File

@ -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;