Skip to content

Commit 54e99e1

Browse files
book: avoid "let the compiler deduce the list by itself" (#277)
1 parent bdf0e89 commit 54e99e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

book/en-us/03-runtime.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ capture lists can be:
8787

8888
- \[\] empty capture list
8989
- \[name1, name2, ...\] captures a series of variables
90-
- \[&\] reference capture, let the compiler deduce the reference list by itself
91-
- \[=\] value capture, let the compiler deduce the value list by itself
90+
- \[&\] reference capture, determine the reference capture list from the uses the in function body
91+
- \[=\] value capture, determine the value capture list from the uses in the function body
9292

9393
#### 4. Expression capture
9494

book/zh-cn/03-runtime.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ void lambda_reference_capture() {
7676

7777
- \[\] 空捕获列表
7878
- \[name1, name2, ...\] 捕获一系列变量
79-
- \[&\] 引用捕获, 让编译器自行推导引用列表
80-
- \[=\] 值捕获, 让编译器自行推导值捕获列表
79+
- \[&\] 引用捕获, 从函数体内的使用确定引用捕获列表
80+
- \[=\] 值捕获, 从函数体内的使用确定值捕获列表
8181

8282
#### 4. 表达式捕获
8383

0 commit comments

Comments
 (0)