Skip to content

[Fix]: The lambda introducer related issue #164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 derive the capture list by itself
- \[=\] value capture, let the compiler execute the list of derivation applications
- \[&\] reference capture, let the compiler deduce the reference list by itself
- \[=\] value capture, let the compiler deduce the value list by itself

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