From e40e4b85550d99dadaf4049ac1aec73418e4a6c9 Mon Sep 17 00:00:00 2001 From: Alex Vig Date: Wed, 4 Oct 2017 12:52:55 -0400 Subject: [PATCH] Simplified ch16-02 transmitter cloning Changed from static function call to method call for clarity. --- second-edition/src/ch16-02-message-passing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/second-edition/src/ch16-02-message-passing.md b/second-edition/src/ch16-02-message-passing.md index d134628418..6bcca70d1d 100644 --- a/second-edition/src/ch16-02-message-passing.md +++ b/second-edition/src/ch16-02-message-passing.md @@ -264,7 +264,7 @@ cloning the transmitting half of the channel, as shown in Listing 16-11: // ...snip... let (tx, rx) = mpsc::channel(); -let tx1 = mpsc::Sender::clone(&tx); +let tx1 = tx.clone(); thread::spawn(move || { let vals = vec![ String::from("hi"),