Skip to content

Commit

Permalink
Update tokio/src/sync/semaphore.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Darksonn authored Oct 5, 2023
1 parent fd448eb commit 68989c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/sync/semaphore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ use std::sync::Arc;
/// // never close it, so this error can never happen.
/// let permit = self.sem.acquire().await.unwrap();
/// // To avoid releasing the permit back to the semaphore, we use
/// // the `Permit::forget` method.
/// // the `SemaphorePermit::forget` method.
/// permit.forget();
/// }
/// }
Expand Down

0 comments on commit 68989c3

Please sign in to comment.