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

This commit is contained in:
Hsiang-Cheng Yang 2022-09-03 21:57:18 +08:00 committed by GitHub
parent c2612b446f
commit 1fd7f82468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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