Skip to content

Commit 160305b

Browse files
committed
Auto merge of #14154 - lnicola:rand-typos, r=lnicola
minor: Fix a pair of typos
2 parents 89b9940 + 6e5ec0b commit 160305b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Binary file not shown.

crates/stdx/src/rand.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//! We don't use `rand`, as that's too many things for us.
22
//!
3-
//! Currently, we use oorandom instead, but it misses these two utilities.
4-
//! Perhaps we should switch to `fastrand`, or our own small prng, it's not like
5-
//! we need anything move complicatied that xor-shift.
3+
//! We currently use oorandom instead, but it's missing these two utilities.
4+
//! Perhaps we should switch to `fastrand`, or our own small PRNG, it's not like
5+
//! we need anything more complicated than xor-shift.
66
77
pub fn shuffle<T>(slice: &mut [T], mut rand_index: impl FnMut(usize) -> usize) {
88
let mut remaining = slice.len() - 1;

0 commit comments

Comments
 (0)