Skip to content

Commit ec1a6ea

Browse files
matkladStjepan Glavina
authored and
Stjepan Glavina
committed
Fix typo (#439)
1 parent 5adc608 commit ec1a6ea

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/stream/stream/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ use nth::NthFuture;
8585
use partial_cmp::PartialCmpFuture;
8686
use position::PositionFuture;
8787
use try_fold::TryFoldFuture;
88-
use try_for_each::TryForEeachFuture;
88+
use try_for_each::TryForEachFuture;
8989

9090
pub use chain::Chain;
9191
pub use filter::Filter;
@@ -1396,12 +1396,12 @@ extension_trait! {
13961396
fn try_for_each<F, E>(
13971397
self,
13981398
f: F,
1399-
) -> impl Future<Output = E> [TryForEeachFuture<Self, F, Self::Item, E>]
1399+
) -> impl Future<Output = E> [TryForEachFuture<Self, F, Self::Item, E>]
14001400
where
14011401
Self: Sized,
14021402
F: FnMut(Self::Item) -> Result<(), E>,
14031403
{
1404-
TryForEeachFuture::new(self, f)
1404+
TryForEachFuture::new(self, f)
14051405
}
14061406

14071407
#[doc = r#"

src/stream/stream/try_for_each.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::task::{Context, Poll};
1010
pin_project! {
1111
#[doc(hidden)]
1212
#[allow(missing_debug_implementations)]
13-
pub struct TryForEeachFuture<S, F, T, R> {
13+
pub struct TryForEachFuture<S, F, T, R> {
1414
#[pin]
1515
stream: S,
1616
f: F,
@@ -19,9 +19,9 @@ pin_project! {
1919
}
2020
}
2121

22-
impl<S, F, T, R> TryForEeachFuture<S, F, T, R> {
22+
impl<S, F, T, R> TryForEachFuture<S, F, T, R> {
2323
pub(crate) fn new(stream: S, f: F) -> Self {
24-
TryForEeachFuture {
24+
TryForEachFuture {
2525
stream,
2626
f,
2727
__from: PhantomData,
@@ -30,7 +30,7 @@ impl<S, F, T, R> TryForEeachFuture<S, F, T, R> {
3030
}
3131
}
3232

33-
impl<S, F, E> Future for TryForEeachFuture<S, F, S::Item, E>
33+
impl<S, F, E> Future for TryForEachFuture<S, F, S::Item, E>
3434
where
3535
S: Stream,
3636
S::Item: std::fmt::Debug,

0 commit comments

Comments
 (0)