Skip to content

Commit

Permalink
fmt main example
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshuawuyts committed Mar 14, 2020
1 parent 730a5fe commit 96dea77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
//! #[async_std::main]
//! async fn main() {
//! let v = vec![1, 2, 3, 4];
//! let mut out: Vec<usize> = v.into_par_stream().map(|n| async move { n * n }).collect().await;
//! let mut out: Vec<usize> = v
//! .into_par_stream()
//! .map(|n| async move { n * n })
//! .collect()
//! .await;
//! out.sort();
//! assert_eq!(out, vec![1, 4, 9, 16]);
//! }
Expand Down

0 comments on commit 96dea77

Please sign in to comment.