Преглед на файлове

fix: Update use_coroutine example (#1237)

Marc Espín преди 1 година
родител
ревизия
fad3272afb
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/hooks/src/usecoroutine.rs

+ 1 - 1
packages/hooks/src/usecoroutine.rs

@@ -46,7 +46,7 @@ use std::future::Future;
 ///     Stop,
 /// }
 ///
-/// let chat_client = use_coroutine(cx, |rx: UnboundedReceiver<Action>| async move {
+/// let chat_client = use_coroutine(cx, |mut rx: UnboundedReceiver<Action>| async move {
 ///     while let Some(action) = rx.next().await {
 ///         match action {
 ///             Action::Start => {}