@@ -105,9 +105,10 @@ pub trait DoubleEndedStream: Stream {
105105 ```
106106 # fn main() { async_std::task::block_on(async {
107107 #
108- use async_std::stream::double_ended_stream::{self, DoubleEndedStream};
108+ use async_std::prelude::*;
109+ use async_std::stream;
109110
110- let mut s = double_ended_stream ::from_iter(vec![7u8]);
111+ let mut s = stream ::from_iter(vec![7u8]);
111112
112113 assert_eq!(s.next_back().await, Some(7));
113114 assert_eq!(s.next_back().await, None);
@@ -132,9 +133,10 @@ pub trait DoubleEndedStream: Stream {
132133 ```
133134 # fn main() { async_std::task::block_on(async {
134135 #
135- use async_std::stream::double_ended_stream::{self, DoubleEndedStream};
136+ use async_std::prelude::*;
137+ use async_std::stream;
136138
137- let mut s = double_ended_stream ::from_iter(vec![1u8, 2, 3, 4, 5]);
139+ let mut s = stream ::from_iter(vec![1u8, 2, 3, 4, 5]);
138140
139141 let second = s.nth_back(1).await;
140142 assert_eq!(second, Some(4));
@@ -159,9 +161,10 @@ pub trait DoubleEndedStream: Stream {
159161 ```
160162 # fn main() { async_std::task::block_on(async {
161163 #
162- use async_std::stream::double_ended_stream::{self, DoubleEndedStream};
164+ use async_std::prelude::*;
165+ use async_std::stream;
163166
164- let mut s = double_ended_stream ::from_iter(vec![1u8, 2, 3, 4, 5]);
167+ let mut s = stream ::from_iter(vec![1u8, 2, 3, 4, 5]);
165168
166169 let second = s.rfind(|v| v % 2 == 0).await;
167170 assert_eq!(second, Some(4));
@@ -185,9 +188,10 @@ pub trait DoubleEndedStream: Stream {
185188 ```
186189 # fn main() { async_std::task::block_on(async {
187190 #
188- use async_std::stream::double_ended_stream::{self, DoubleEndedStream};
191+ use async_std::prelude::*;
192+ use async_std::stream;
189193
190- let s = double_ended_stream ::from_iter(vec![1u8, 2, 3, 4, 5]);
194+ let s = stream ::from_iter(vec![1u8, 2, 3, 4, 5]);
191195
192196 let second = s.rfold(0, |acc, v| v + acc).await;
193197
@@ -215,9 +219,10 @@ pub trait DoubleEndedStream: Stream {
215219 ```
216220 # fn main() { async_std::task::block_on(async {
217221 #
218- use async_std::stream::double_ended_stream::{self, DoubleEndedStream};
222+ use async_std::prelude::*;
223+ use async_std::stream;
219224
220- let s = double_ended_stream ::from_iter(vec![1u8, 2, 3, 4, 5]);
225+ let s = stream ::from_iter(vec![1u8, 2, 3, 4, 5]);
221226 let sum = s.try_rfold(0, |acc, v| {
222227 if (acc+v) % 2 == 1 {
223228 Ok(v+3)
0 commit comments