Skip to content

Commit

Permalink
Fix documentation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulstrackx committed Nov 6, 2023
1 parent 6af8803 commit 994c9b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tokio-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ use proc_macro::TokenStream;
/// ### Configure the runtime to start with time paused
///
/// ```rust
/// # #[cfg(not(feature = "test-util"))]
/// # fn main(){}
/// # #[cfg(feature = "test-util")]
/// #[tokio::main(flavor = "current_thread", start_paused = true)]
/// async fn main() {
/// println!("Hello world");
Expand All @@ -162,6 +165,7 @@ use proc_macro::TokenStream;
///
/// ```rust
/// fn main() {
/// # #[cfg(feature = "test-util")]
/// tokio::runtime::Builder::new_current_thread()
/// .enable_all()
/// .start_paused(true)
Expand Down

0 comments on commit 994c9b4

Please sign in to comment.