mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-01-23 07:20:20 +08:00
Update code
This commit is contained in:
parent
b7bdc87ee6
commit
cdfcfcf2ce
@ -197,7 +197,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"),
|
||||
|
Loading…
Reference in New Issue
Block a user