sync: fix typo in tokio::sync::watch::Sender docs (#5587)

This commit is contained in:
Dmitry Rodionov
2023-03-29 18:05:24 +00:00
committed by GitHub
parent b31f1a4662
commit d63d659078
+2 -2
View File
@@ -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.
///
@@ -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.
///