Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tokio-rs/tokio
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1f64e21a8fd507ae86b538c30394398e7efc7e1a
Choose a base ref
..
head repository: tokio-rs/tokio
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6a372b218f12bd2fed323ba92d55ee49a0608bba
Choose a head ref
Showing with 2 additions and 17 deletions.
  1. +2 −17 tokio-macros/src/lib.rs
19 changes: 2 additions & 17 deletions tokio-macros/src/lib.rs
Original file line number Diff line number Diff line change
@@ -253,23 +253,8 @@ pub fn main_rt(args: TokenStream, item: TokenStream) -> TokenStream {
///
/// ```no_run
/// #[tokio::test(start_paused = true)]
/// async fn main() {
/// println!("Hello world");
/// }
/// ```
///
/// Equivalent code not using `#[tokio::main]`
///
/// ```rust
/// fn main() {
/// tokio::runtime::Builder::new_current_thread()
/// .enable_all()
/// .start_paused(true)
/// .build()
/// .unwrap()
/// .block_on(async {
/// println!("Hello world");
/// })
/// async fn my_test() {
/// assert!(true);
/// }
/// ```
///