Update ch13-01-closures.md

This commit is contained in:
TeCHiScy 2023-01-22 18:10:54 +08:00 committed by GitHub
parent 44c3b8df31
commit 0d9f388dc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>