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

This commit is contained in:
Dmitry Rodionov 2023-03-29 21:05:24 +03:00 committed by GitHub
parent b31f1a4662
commit d63d659078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.
///