From c029771247e31bfba61fd62400986c0d155ef0d0 Mon Sep 17 00:00:00 2001 From: Jesse Schalken Date: Tue, 2 Jan 2024 22:08:11 +1100 Subject: [PATCH] task: fix typo (#6261) --- tokio/src/task/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/task/mod.rs b/tokio/src/task/mod.rs index 6b352b16fa9..aefa395c044 100644 --- a/tokio/src/task/mod.rs +++ b/tokio/src/task/mod.rs @@ -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). //!