task: fix a doc typo in LocalKey::sync_scope (#4971)

This commit is contained in:
Hsiang-Cheng Yang
2022-09-03 13:57:18 +00:00
committed by GitHub
parent c2612b446f
commit 1fd7f82468
+1 -1
View File
@@ -157,7 +157,7 @@ impl<T: 'static> LocalKey<T> {
/// 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
///