From 1fd7f8246863e8396e0a98b5bb04de32d36b7fa3 Mon Sep 17 00:00:00 2001 From: Hsiang-Cheng Yang Date: Sat, 3 Sep 2022 21:57:18 +0800 Subject: [PATCH] task: fix a doc typo in `LocalKey::sync_scope` (#4971) --- tokio/src/task/task_local.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/task/task_local.rs b/tokio/src/task/task_local.rs index a1498ca4e..d3b108fe6 100644 --- a/tokio/src/task/task_local.rs +++ b/tokio/src/task/task_local.rs @@ -157,7 +157,7 @@ impl LocalKey { /// Sets a value `T` as the task-local value for the closure `F`. /// - /// On completion of `scope`, the task-local will be dropped. + /// On completion of `sync_scope`, the task-local will be dropped. /// /// ### Panics ///