Fix a pair of typos

This commit is contained in:
Laurențiu Nicola 2023-02-15 13:23:13 +02:00
parent 89b9940491
commit 6e5ec0b3ce
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;