diff --git a/packages/hooks/src/usecoroutine.rs b/packages/hooks/src/usecoroutine.rs index b19a355d0..e5563d793 100644 --- a/packages/hooks/src/usecoroutine.rs +++ b/packages/hooks/src/usecoroutine.rs @@ -46,7 +46,7 @@ use std::future::Future; /// Stop, /// } /// -/// let chat_client = use_coroutine(cx, |rx: UnboundedReceiver| async move { +/// let chat_client = use_coroutine(cx, |mut rx: UnboundedReceiver| async move { /// while let Some(action) = rx.next().await { /// match action { /// Action::Start => {}