Skip to content

Commit 0f4f0fb

Browse files
author
Stjepan Glavina
committed
Fix a typo
1 parent ab1e2b4 commit 0f4f0fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/tutorial/handling_disconnection.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ async fn broker(events: Receiver<Event>) {
258258
for addr in to {
259259
if let Some(peer) = peers.get_mut(&addr) {
260260
let msg = format!("from {}: {}\n", from, msg);
261-
peer.send(fmt).await
261+
peer.send(msg).await
262262
.unwrap() // 6
263263
}
264264
}

0 commit comments

Comments
 (0)