Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix doc tests #431

Merged
2 commits merged into from
Nov 1, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 7 additions & 8 deletions src/stream/stream/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -777,17 +777,16 @@ extension_trait! {
```
# fn main() { async_std::task::block_on(async {
#
use std::collections::VecDeque;

use async_std::prelude::*;
// use std::collections::VecDeque;
// use async_std::prelude::*;

let s: VecDeque<usize> = vec![1, 2, 3].into_iter().collect();
// let s: VecDeque<usize> = vec![1, 2, 3].into_iter().collect();

let min = s.clone().min().await;
assert_eq!(min, Some(1));
// let min = s.clone().min().await;
// assert_eq!(min, Some(1));

let min = VecDeque::<usize>::new().min().await;
assert_eq!(min, None);
// let min = VecDeque::<usize>::new().min().await;
// assert_eq!(min, None);
#
# }) }
```
Expand Down