Skip to content

Commit

Permalink
util: fix import path of CancellationToken in example code (#4520)
Browse files Browse the repository at this point in the history
  • Loading branch information
t5kaji authored Feb 23, 2022
1 parent ff8befb commit 503ae34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tokio-util/src/sync/cancellation_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ use guard::DropGuard;
///
/// # Examples
///
/// ```ignore
/// ```no_run
/// use tokio::select;
/// use tokio::scope::CancellationToken;
/// use tokio_util::sync::CancellationToken;
///
/// #[tokio::main]
/// async fn main() {
Expand Down Expand Up @@ -172,9 +172,9 @@ impl CancellationToken {
///
/// # Examples
///
/// ```ignore
/// ```no_run
/// use tokio::select;
/// use tokio::scope::CancellationToken;
/// use tokio_util::sync::CancellationToken;
///
/// #[tokio::main]
/// async fn main() {
Expand Down

0 comments on commit 503ae34

Please sign in to comment.