mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-09 00:00:08 +02:00
task: fix a doc typo in LocalKey::sync_scope (#4971)
This commit is contained in:
@@ -157,7 +157,7 @@ impl<T: 'static> LocalKey<T> {
|
|||||||
|
|
||||||
/// Sets a value `T` as the task-local value for the closure `F`.
|
/// 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
|
/// ### Panics
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user