mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-22 00:00:11 +02:00
sync: hide #[tokio::main] attribute in the docs of sync::watch (#8035)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user