diff --git a/src/concurrency/parallel/rayon-parallel-sort.md b/src/concurrency/parallel/rayon-parallel-sort.md index 7fd82ac..83efc85 100644 --- a/src/concurrency/parallel/rayon-parallel-sort.md +++ b/src/concurrency/parallel/rayon-parallel-sort.md @@ -19,7 +19,7 @@ fn main() { let mut vec = vec![String::new(); 100_000]; vec.par_iter_mut().for_each(|p| { let mut rng = thread_rng(); - *p = (0..5).map(|_| rng.sample(&Alphanumeric)).collect() + *p = (0..5).map(|_| rng.sample(&Alphanumeric) as char).collect() }); vec.par_sort_unstable(); }