From 987461504dbde9941dfccc2b7458dc63046dddab Mon Sep 17 00:00:00 2001 From: dean Date: Wed, 17 Jan 2018 17:13:36 +0800 Subject: [PATCH] Translate some english sentences that have missed the translation. --- src/ch16-01-threads.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch16-01-threads.md b/src/ch16-01-threads.md index 58ebd88..0381ab8 100644 --- a/src/ch16-01-threads.md +++ b/src/ch16-01-threads.md @@ -174,7 +174,7 @@ fn main() { } ``` -示例 16-3: 在主线程中创建一个 vector,尝试在其它线程中使用它/span> +示例 16-3: 在主线程中创建一个 vector,尝试在其它线程中使用它 闭包使用了`v`,所以闭包会获取`v`并使其成为闭包环境的一部分。因为`thread::spawn`在一个新线程中运行这个闭包,所以可以在新线程中访问`v`。