diff --git a/doc/coroutine.qbk b/doc/coroutine.qbk index 0ab8153..d9b5ddc 100644 --- a/doc/coroutine.qbk +++ b/doc/coroutine.qbk @@ -76,7 +76,7 @@ As an example, the code below will result in undefined behaviour: boost::coroutines2::coroutine::push_type coro( [&](boost::coroutines2::coroutine::pull_type& yield){ - yield(); + coro(); }); coro();