Skip to content

Commit

Permalink
doc/lambda-coroutine-fiasco: reword for better readability
Browse files Browse the repository at this point in the history
rewrite part of the document to enhance readability.

Signed-off-by: Kefu Chai <[email protected]>

Closes #2401
  • Loading branch information
tchaikov authored and xemul committed Sep 10, 2024
1 parent 8c58a72 commit d28c9a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/lambda-coroutine-fiasco.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ struct lambda {
## Lambda coroutines and coroutine argument capture
In addition to a lambda capturing variables from its environment, the
coroutine also captures its arguments. This capture can happen by value
or reference, depending on how each argument is declared.
Coroutines, like lambdas, can capture variables from their enclosing
scope. Additionally, coroutines capture their arguments, which can occur
by value or by reference, depending on the argument's declaration.
The lambda's captures however are captured by reference. To understand why,
consider that the coroutine translation process notionally transforms a member function
Expand Down

0 comments on commit d28c9a2

Please sign in to comment.