diff --git a/src/ch16-02-message-passing.md b/src/ch16-02-message-passing.md index 6069ac7..d724249 100644 --- a/src/ch16-02-message-passing.md +++ b/src/ch16-02-message-passing.md @@ -200,7 +200,7 @@ Got: thread let (tx, rx) = mpsc::channel(); -let tx1 = mpsc::Sender::clone(&tx); +let tx1 = tx.clone(); thread::spawn(move || { let vals = vec![ String::from("hi"),