Skip to content

Commit 53064f6

Browse files
authored
Convert u8 to char (necessary since rand 0.8) (#641)
1 parent 059c8a0 commit 53064f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/concurrency/parallel/rayon-parallel-sort.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn main() {
1919
let mut vec = vec![String::new(); 100_000];
2020
vec.par_iter_mut().for_each(|p| {
2121
let mut rng = thread_rng();
22-
*p = (0..5).map(|_| rng.sample(&Alphanumeric)).collect()
22+
*p = (0..5).map(|_| rng.sample(&Alphanumeric) as char).collect()
2323
});
2424
vec.par_sort_unstable();
2525
}

0 commit comments

Comments
 (0)