Skip to content

Commit 24e0468

Browse files
committed
[coro.generator.promise] Use "equivalent to throw, ..."
Our style guide says that "equivalent to <expression>" is the appropriate style for an expression of type `void`, which is the case for `throw`. This avoids the awkward situation of having "equivalent to: `throws;`" appear in the middle of a paragraph without proper terminal punctuation. Fixes NB US 119 (C++23 CD).
1 parent 92de599 commit 24e0468

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/ranges.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15420,8 +15420,8 @@
1542015420
If the handle referring to the coroutine
1542115421
whose promise object is \tcode{*this}
1542215422
is the sole element of \tcode{*x.\exposid{active_}},
15423-
equivalent to: \tcode{throw;}
15424-
Otherwise, assigns \tcode{current_exception()} to \exposid{except_}.
15423+
equivalent to \tcode{throw},
15424+
otherwise, assigns \tcode{current_exception()} to \exposid{except_}.
1542515425
\end{itemdescr}
1542615426

1542715427
\indexlibrarymember{operator new}{generator::promise_type}%

0 commit comments

Comments
 (0)