File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -680,7 +680,7 @@ pub trait StreamExt: Stream {
680
680
/// # Examples
681
681
///
682
682
/// ```
683
- /// #![feature(async_await, async_closure )]
683
+ /// #![feature(async_await)]
684
684
/// # futures::executor::block_on(async {
685
685
/// use futures::channel::oneshot;
686
686
/// use futures::stream::{self, StreamExt};
@@ -691,7 +691,7 @@ pub trait StreamExt: Stream {
691
691
///
692
692
/// let fut = stream::iter(vec![rx1, rx2, rx3]).for_each_concurrent(
693
693
/// /* limit */ 2,
694
- /// async move |rx| {
694
+ /// |rx| async move {
695
695
/// rx.await.unwrap();
696
696
/// }
697
697
/// );
Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ pub trait TryStreamExt: TryStream {
396
396
/// # Examples
397
397
///
398
398
/// ```
399
- /// #![feature(async_await, async_closure )]
399
+ /// #![feature(async_await)]
400
400
/// # futures::executor::block_on(async {
401
401
/// use futures::channel::oneshot;
402
402
/// use futures::stream::{self, StreamExt, TryStreamExt};
@@ -408,7 +408,7 @@ pub trait TryStreamExt: TryStream {
408
408
/// let stream = stream::iter(vec![rx1, rx2, rx3]);
409
409
/// let fut = stream.map(Ok).try_for_each_concurrent(
410
410
/// /* limit */ 2,
411
- /// async move |rx| {
411
+ /// |rx| async move {
412
412
/// let res: Result<(), oneshot::Canceled> = rx.await;
413
413
/// res
414
414
/// }
You can’t perform that action at this time.
0 commit comments