From 2e856ecb3b25890917c9754477919d58d3fc9177 Mon Sep 17 00:00:00 2001 From: Henry <56412856+mcmah309@users.noreply.github.com> Date: Sat, 5 Apr 2025 02:44:20 +0900 Subject: [PATCH] doc: Fix spawn doc (#3871) --- packages/core/src/global_context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/global_context.rs b/packages/core/src/global_context.rs index 94f60ac38..73515dcb0 100644 --- a/packages/core/src/global_context.rs +++ b/packages/core/src/global_context.rs @@ -120,7 +120,7 @@ pub fn spawn_isomorphic(fut: impl Future + 'static) -> Task { Runtime::with_current_scope(|cx| cx.spawn_isomorphic(fut)).unwrap() } -/// Spawns the future but does not return the [`Task`]. This task will automatically be canceled when the component is dropped. +/// Spawns the future and returns the [`Task`]. This task will automatically be canceled when the component is dropped. /// /// # Example /// ```rust