Skip to content

Commit

Permalink
book: avoid "let the compiler deduce the list by itself" (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
frederick-vs-ja committed May 20, 2024
1 parent bdf0e89 commit 54e99e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions book/en-us/03-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ capture lists can be:

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

#### 4. Expression capture

Expand Down
4 changes: 2 additions & 2 deletions book/zh-cn/03-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ void lambda_reference_capture() {

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

#### 4. 表达式捕获

Expand Down

0 comments on commit 54e99e1

Please sign in to comment.