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 ///