Skip to content

Commit

Permalink
sync: fix typo in tokio::sync::watch::Sender docs (#5587)
Browse files Browse the repository at this point in the history
  • Loading branch information
LizardWizzard committed Mar 29, 2023
1 parent b31f1a4 commit d63d659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tokio/src/sync/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ impl<T> Sender<T> {
/// Modifies the watched value **unconditionally** in-place,
/// notifying all receivers.
///
/// This can useful for modifying the watched value, without
/// This can be useful for modifying the watched value, without
/// having to allocate a new instance. Additionally, this
/// method permits sending values even when there are no receivers.
///
Expand Down Expand Up @@ -747,7 +747,7 @@ impl<T> Sender<T> {
/// Modifies the watched value **conditionally** in-place,
/// notifying all receivers only if modified.
///
/// This can useful for modifying the watched value, without
/// This can be useful for modifying the watched value, without
/// having to allocate a new instance. Additionally, this
/// method permits sending values even when there are no receivers.
///
Expand Down

0 comments on commit d63d659

Please sign in to comment.