소스 검색

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 => {}