Skip to content

Commit

Permalink
Correct mis-naming of variables in wrap_async_read
Browse files Browse the repository at this point in the history
  • Loading branch information
octylFractal authored and chris-laplante committed Aug 26, 2022
1 parent 4afa008 commit b5de18c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/progress_bar.rs
Expand Up @@ -498,10 +498,10 @@ impl ProgressBar {
/// # Ok(())
/// # }
/// ```
pub fn wrap_async_read<W: tokio::io::AsyncRead + Unpin>(&self, write: W) -> ProgressBarIter<W> {
pub fn wrap_async_read<R: tokio::io::AsyncRead + Unpin>(&self, read: R) -> ProgressBarIter<R> {
ProgressBarIter {
progress: self.clone(),
it: write,
it: read,
}
}

Expand Down

0 comments on commit b5de18c

Please sign in to comment.