Skip to content

Commit

Permalink
scan template args reodered to the same order as Iterator::scan
Browse files Browse the repository at this point in the history
  • Loading branch information
olegnn authored and cramertj committed Jan 21, 2020
1 parent fb8a090 commit 6b0e6dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures-util/src/stream/stream/mod.rs
Expand Up @@ -566,7 +566,7 @@ pub trait StreamExt: Stream {
/// assert_eq!(vec![1, 2, 3], stream.collect::<Vec<_>>().await);
/// # });
/// ```
fn scan<B, Fut, S, F>(self, initial_state: S, f: F) -> Scan<Self, S, Fut, F>
fn scan<S, B, Fut, F>(self, initial_state: S, f: F) -> Scan<Self, S, Fut, F>
where
F: FnMut(&mut S, Self::Item) -> Fut,
Fut: Future<Output = Option<B>>,
Expand Down

0 comments on commit 6b0e6dc

Please sign in to comment.