Skip to content

Commit

Permalink
Fix warnings in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jun 26, 2019
1 parent c9772a6 commit 8e4e225
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion futures-util/src/stream/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ pub trait StreamExt: Stream {
/// let (tx, rx) = mpsc::unbounded();
///
/// thread::spawn(move || {
/// for i in (1..=5) {
/// for i in 1..=5 {
/// tx.unbounded_send(i).unwrap();
/// }
/// });
Expand Down
6 changes: 3 additions & 3 deletions futures-util/src/try_stream/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,10 @@ pub trait TryStreamExt: TryStream {
/// use futures::stream::TryStreamExt;
/// use std::thread;
///
/// let (mut tx, rx) = mpsc::unbounded();
/// let (tx, rx) = mpsc::unbounded();
///
/// thread::spawn(move || {
/// for i in (1..=5) {
/// for i in 1..=5 {
/// tx.unbounded_send(Ok(i)).unwrap();
/// }
/// tx.unbounded_send(Err(6)).unwrap();
Expand Down Expand Up @@ -614,7 +614,7 @@ pub trait TryStreamExt: TryStream {
/// use futures::stream::TryStreamExt;
/// use std::thread;
///
/// let (mut tx, rx) = mpsc::unbounded::<Result<Vec<i32>, ()>>();
/// let (tx, rx) = mpsc::unbounded::<Result<Vec<i32>, ()>>();
///
/// thread::spawn(move || {
/// for i in (0..3).rev() {
Expand Down

0 comments on commit 8e4e225

Please sign in to comment.