Update ch13-01-closures.md

pull/684/head
TeCHiScy 2 years ago committed by GitHub
parent 44c3b8df31
commit 0d9f388dc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -101,7 +101,7 @@ let add_one_v4 = |x| x + 1 ;
{{#include ../listings/ch13-functional-features/listing-13-04/output.txt}}
```
接下来在示例 13-5 中,我们修改闭包体以便`list` vector 增加一个元素。闭包现在捕获一个可变引用:
接下来在示例 13-5 中,我们修改闭包体让它`list` vector 增加一个元素。闭包现在捕获一个可变引用:
<span class="filename">文件名src/main.rs</span>

Loading…
Cancel
Save