mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 10:49:55 +00:00
Fix typo (#439)
This commit is contained in:
parent
5adc608791
commit
ec1a6ea3e8
2 changed files with 7 additions and 7 deletions
|
@ -85,7 +85,7 @@ use nth::NthFuture;
|
|||
use partial_cmp::PartialCmpFuture;
|
||||
use position::PositionFuture;
|
||||
use try_fold::TryFoldFuture;
|
||||
use try_for_each::TryForEeachFuture;
|
||||
use try_for_each::TryForEachFuture;
|
||||
|
||||
pub use chain::Chain;
|
||||
pub use filter::Filter;
|
||||
|
@ -1396,12 +1396,12 @@ extension_trait! {
|
|||
fn try_for_each<F, E>(
|
||||
self,
|
||||
f: F,
|
||||
) -> impl Future<Output = E> [TryForEeachFuture<Self, F, Self::Item, E>]
|
||||
) -> impl Future<Output = E> [TryForEachFuture<Self, F, Self::Item, E>]
|
||||
where
|
||||
Self: Sized,
|
||||
F: FnMut(Self::Item) -> Result<(), E>,
|
||||
{
|
||||
TryForEeachFuture::new(self, f)
|
||||
TryForEachFuture::new(self, f)
|
||||
}
|
||||
|
||||
#[doc = r#"
|
||||
|
|
|
@ -10,7 +10,7 @@ use crate::task::{Context, Poll};
|
|||
pin_project! {
|
||||
#[doc(hidden)]
|
||||
#[allow(missing_debug_implementations)]
|
||||
pub struct TryForEeachFuture<S, F, T, R> {
|
||||
pub struct TryForEachFuture<S, F, T, R> {
|
||||
#[pin]
|
||||
stream: S,
|
||||
f: F,
|
||||
|
@ -19,9 +19,9 @@ pin_project! {
|
|||
}
|
||||
}
|
||||
|
||||
impl<S, F, T, R> TryForEeachFuture<S, F, T, R> {
|
||||
impl<S, F, T, R> TryForEachFuture<S, F, T, R> {
|
||||
pub(crate) fn new(stream: S, f: F) -> Self {
|
||||
TryForEeachFuture {
|
||||
TryForEachFuture {
|
||||
stream,
|
||||
f,
|
||||
__from: PhantomData,
|
||||
|
@ -30,7 +30,7 @@ impl<S, F, T, R> TryForEeachFuture<S, F, T, R> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<S, F, E> Future for TryForEeachFuture<S, F, S::Item, E>
|
||||
impl<S, F, E> Future for TryForEachFuture<S, F, S::Item, E>
|
||||
where
|
||||
S: Stream,
|
||||
S::Item: std::fmt::Debug,
|
||||
|
|
Loading…
Reference in a new issue