From dac25e0f764c28f144db8dc043a5a011ae6fd4c5 Mon Sep 17 00:00:00 2001 From: Hao Wang Date: Wed, 2 Jun 2021 21:11:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=A4=BA=E4=BE=8B=2016-11?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ch16-02-message-passing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"),