diff --git a/source/exec.tex b/source/exec.tex index 6472c47849..a0992959f6 100644 --- a/source/exec.tex +++ b/source/exec.tex @@ -8097,7 +8097,7 @@ member functions arrange for the completion of the asynchronous operation associated with \tcode{\exposid{STATE}(*this)}. Let \tcode{st} be a reference to \tcode{\exposid{STATE}(*this)}. -The asynchronous completion first destroys the coroutine frame +The asynchronous completion first destroys the coroutine state using \tcode{st.\exposid{handle}.destroy()} and then invokes: \begin{itemize} \item @@ -8131,7 +8131,7 @@ \tcode{\exposid{STATE}(*this)}. Let \tcode{st} be a reference to \tcode{\exposid{STATE}(*this)}. Then the asynchronous operation completes by first -destroying the coroutine frame using \tcode{st.\exposid{handle}.destroy()} +destroying the coroutine state using \tcode{st.\exposid{handle}.destroy()} and then invoking \tcode{set_error(std::move(st.\exposid{rcvr}), \placeholder{Cerr}(std::move(err.error)))}. @@ -8174,7 +8174,7 @@ Completes the asynchronous operation associated with \tcode{\exposid{STATE}(*this)}. Let \tcode{st} be a reference to \tcode{\exposid{STATE}(*this)}. The asynchronous operation is completed by first -destroying the coroutine frame +destroying the coroutine state using \tcode{st.\exposid{handle}.destroy()} and then invoking \tcode{set_stopped(std::move(st.\exposid{rcvr}))}. \end{itemdescr} diff --git a/source/ranges.tex b/source/ranges.tex index 6a066e87b0..987ce3d95e 100644 --- a/source/ranges.tex +++ b/source/ranges.tex @@ -17742,7 +17742,7 @@ \begin{note} Ownership of recursively yielded generators is held in awaitable objects -in the coroutine frame of the yielding generator, +in the coroutine state of the yielding generator, so destroying the root generator effectively destroys the entire stack of yielded generators. \end{note}