fix: Update use_coroutine example (#1237)

This commit is contained in:
Marc Espín authored and GitHub committed 2023-07-24 11:32:32 -05:00
1 parent dc7e1a5f13
commit fad3272afb
1 file changed
+1 -1
+1 -1
View File
@@ -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 => {}