From 9453ba7480b0446fd16730c6becbd0c70aff716b Mon Sep 17 00:00:00 2001 From: Kaede Hoshikawa Date: Mon, 22 Aug 2022 00:33:51 +0900 Subject: [PATCH] Fix comment. --- packages/yew/src/platform/rt_tokio/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/yew/src/platform/rt_tokio/mod.rs b/packages/yew/src/platform/rt_tokio/mod.rs index 77a2c23b56c..04ac8cad690 100644 --- a/packages/yew/src/platform/rt_tokio/mod.rs +++ b/packages/yew/src/platform/rt_tokio/mod.rs @@ -142,10 +142,10 @@ mod tests { runtime.spawn_pinned(move || async move { tokio::task::spawn(async move { - // tokio::task::spawn_local cannot spawn within a Send task. + // tokio::task::spawn_local cannot spawn tasks outside of a local context. // - // yew::platform::spawn_local can spawn within a Send task as long as runnting under - // a Yew Runtime. + // yew::platform::spawn_local can spawn tasks within a Send task as long as running + // under a Yew Runtime. spawn_local(async move { tx.send(()).expect("failed to send!"); })