Skip to content

Commit

Permalink
Fix StaticLocalExecutor doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
james7132 committed Apr 13, 2024
1 parent 281b601 commit 0fc9770
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/leaked.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl LocalExecutor<'static> {
/// # Example
///
/// ```
/// use async_executor::Executor;
/// use async_executor::LocalExecutor;
/// use futures_lite::future;
///
/// let ex = LocalExecutor::new().leak();
Expand Down Expand Up @@ -294,7 +294,7 @@ impl StaticLocalExecutor {
/// # Examples
///
/// ```
/// use async_executor::Executor;
/// use async_executor::LocalExecutor;
///
/// let ex = LocalExecutor::new().leak();
///
Expand Down Expand Up @@ -350,7 +350,7 @@ impl StaticLocalExecutor {
/// # Examples
///
/// ```
/// use async_executor::Executor;
/// use async_executor::LocalExecutor;
///
/// let ex = LocalExecutor::new().leak();
/// assert!(!ex.try_tick()); // no tasks to run
Expand All @@ -373,7 +373,7 @@ impl StaticLocalExecutor {
/// # Examples
///
/// ```
/// use async_executor::Executor;
/// use async_executor::LocalExecutor;
/// use futures_lite::future;
///
/// let ex = LocalExecutor::new().leak();
Expand All @@ -392,7 +392,7 @@ impl StaticLocalExecutor {
/// # Examples
///
/// ```
/// use async_executor::Executor;
/// use async_executor::LocalExecutor;
/// use futures_lite::future;
///
/// let ex = LocalExecutor::new().leak();
Expand Down

0 comments on commit 0fc9770

Please sign in to comment.