Skip to content

Commit ce7c236

Browse files
author
김남기(Kim Namki)(namk)
committed
Fix stack unwinding example
1 parent 21b704e commit ce7c236

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/asymmetric.qbk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ After unwinding, a __coro__ is complete.
276276
boost::coroutines::asymmetric_coroutine<void>::push_type sink(
277277
[&](boost::coroutines::asymmetric_coroutine<void>::pull_type& source){
278278
X x;
279-
for(int=0;;++i){
279+
for(int i=0;;++i){
280280
std::cout<<"fn(): "<<i<<std::endl;
281281
// transfer execution control back to main()
282282
source();
@@ -299,7 +299,6 @@ After unwinding, a __coro__ is complete.
299299
fn(): 2
300300
fn(): 3
301301
fn(): 4
302-
fn(): 5
303302
sink is complete: false
304303
~X()
305304

0 commit comments

Comments
 (0)