Skip to content

Commit

Permalink
sync: remove misleading comment (#2666)
Browse files Browse the repository at this point in the history
We are not returning the old value. I suppose this was once indented and this
is a leftover.
  • Loading branch information
nicolaiunrein authored Jul 20, 2020
1 parent 32f46d7 commit 6dcce19
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tokio/src/sync/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ impl<T> Sender<T> {
// Notify all watchers
notify_all(&*shared);

// Return the old value
Ok(())
}

Expand Down

0 comments on commit 6dcce19

Please sign in to comment.