sync: hide #[tokio::main] attribute in the docs of sync::watch (#8035)

This commit is contained in:
Abhinav
2026-04-10 13:15:37 -07:00
committed by GitHub
parent 1604bc3351
commit 432ec3f2b2
+1 -1
View File
@@ -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();