mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 02:39:55 +00:00
Fix a typo
This commit is contained in:
parent
9627826756
commit
bf9ee88815
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ Unzip a stream of tuples into two collections:
|
||||||
use async_std::prelude::*;
|
use async_std::prelude::*;
|
||||||
use async_std::stream;
|
use async_std::stream;
|
||||||
|
|
||||||
let s = stream::from_iter(vec![(1,2), (3,4)]);
|
let s = stream::from_iter(vec![(1,2), (3,4)]);
|
||||||
|
|
||||||
let (left, right): (Vec<_>, Vec<_>) = s.unzip().await;
|
let (left, right): (Vec<_>, Vec<_>) = s.unzip().await;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue