更新示例 16-11的代码

This commit is contained in:
Hao Wang 2021-06-02 21:11:29 +08:00 committed by GitHub
parent d14d64577b
commit dac25e0f76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"),