task: fix typo (#6261)

This commit is contained in:
Jesse Schalken
2024-01-02 12:08:11 +01:00
committed by GitHub
parent 7341004535
commit c029771247
+1 -1
View File
@@ -123,7 +123,7 @@
//! all tasks on it.
//!
//! When tasks are shut down, it will stop running at whichever `.await` it has
//! yielded at. All local variables are destroyed by running their detructor.
//! yielded at. All local variables are destroyed by running their destructor.
//! Once shutdown has completed, awaiting the [`JoinHandle`] will fail with a
//! [cancelled error](crate::task::JoinError::is_cancelled).
//!