Skip to content

Commit

Permalink
try to fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariel Ben-Yehuda committed Jan 10, 2025
1 parent 6972b7b commit 8eedfd6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tokio/src/runtime/dump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ impl Trace {
///
/// Example usage:
/// ```
/// # use std::future::Future;
/// # use std::task::Poll;
///
/// # use tokio::runtime::dump::Trace;
///
/// # async fn test_fn() {
/// // some future
/// let mut test_future = std::pin::pin!(async move { tokio::task::yield_now().await; 0 });
///
Expand All @@ -242,6 +248,7 @@ impl Trace {
/// };
///
/// println!("{trace}");
/// # }
/// ```
///
/// ### Nested calls
Expand Down

0 comments on commit 8eedfd6

Please sign in to comment.