From 1f64e21a8fd507ae86b538c30394398e7efc7e1a Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sun, 31 Jan 2021 16:21:38 -0500 Subject: [PATCH] fix test --- tokio-macros/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio-macros/src/lib.rs b/tokio-macros/src/lib.rs index 26c8a9c1a00..f51e8206a03 100644 --- a/tokio-macros/src/lib.rs +++ b/tokio-macros/src/lib.rs @@ -251,8 +251,8 @@ pub fn main_rt(args: TokenStream, item: TokenStream) -> TokenStream { /// /// ### Configure the runtime to start with time paused /// -/// ```rust -/// #[tokio::main(start_paused = true)] +/// ```no_run +/// #[tokio::test(start_paused = true)] /// async fn main() { /// println!("Hello world"); /// }