From 432ec3f2b2a21b668c1d5c5703914ac5ecbe6d8a Mon Sep 17 00:00:00 2001 From: Abhinav Date: Sat, 11 Apr 2026 01:45:37 +0530 Subject: [PATCH] sync: hide `#[tokio::main]` attribute in the docs of `sync::watch` (#8035) --- tokio/src/sync/watch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/sync/watch.rs b/tokio/src/sync/watch.rs index 7a8a994f0..502765ebc 100644 --- a/tokio/src/sync/watch.rs +++ b/tokio/src/sync/watch.rs @@ -111,7 +111,7 @@ //! ``` //! use tokio::sync::watch; //! -//! #[tokio::main(flavor = "current_thread")] +//! # #[tokio::main(flavor = "current_thread")] //! # async fn main() { //! let (tx, mut rx) = watch::channel("hello"); //! tx.send("goodbye").unwrap();