mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-01-23 15:40:27 +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 (tx, rx) = mpsc::channel();
|
||||||
|
|
||||||
let tx1 = mpsc::Sender::clone(&tx);
|
let tx1 = tx.clone();
|
||||||
thread::spawn(move || {
|
thread::spawn(move || {
|
||||||
let vals = vec![
|
let vals = vec![
|
||||||
String::from("hi"),
|
String::from("hi"),
|
||||||
|
Loading…
Reference in New Issue
Block a user