Skip to content

Commit 3141ed6

Browse files
authored
sync: update watch channel docs (#6395)
1 parent ea1cfbd commit 3141ed6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tokio/src/sync/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
//!
279279
//! ## `watch` channel
280280
//!
281-
//! The [`watch` channel] supports sending **many** values from a **single**
281+
//! The [`watch` channel] supports sending **many** values from a **many**
282282
//! producer to **many** consumers. However, only the **most recent** value is
283283
//! stored in the channel. Consumers are notified when a new value is sent, but
284284
//! there is no guarantee that consumers will see **all** values.

tokio/src/sync/watch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![cfg_attr(not(feature = "sync"), allow(dead_code, unreachable_pub))]
22

3-
//! A single-producer, multi-consumer channel that only retains the *last* sent
3+
//! A multi-producer, multi-consumer channel that only retains the *last* sent
44
//! value.
55
//!
66
//! This channel is useful for watching for changes to a value from multiple

0 commit comments

Comments
 (0)