From c579393d1cda4d4424cc818602d61e17f2178534 Mon Sep 17 00:00:00 2001 From: mcmah309 Date: Fri, 14 Mar 2025 06:09:50 +0000 Subject: [PATCH] doc: Fix spawn doc --- 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 94f60ac38d..73515dcb04 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