Skip to content

Commit ad5767e

Browse files
jensmaurerzygoloid
authored andcommitted
[dcl.fct.def.coroutine] Use 'encloses' instead of imprecise 'contains'.
The phrase 'the function-body encloses X' is also used in [dcl.constexpr].
1 parent bffe678 commit ad5767e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/declarations.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6195,7 +6195,7 @@
61956195
\indextext{definition!coroutine}%
61966196

61976197
\pnum
6198-
A function is a \defn{coroutine} if it contains a
6198+
A function is a \defn{coroutine} if its \grammarterm{function-body} encloses a
61996199
\grammarterm{coroutine-return-statement}\iref{stmt.return.coroutine},
62006200
an \grammarterm{await-expression}\iref{expr.await},
62016201
or a \grammarterm{yield-expression}\iref{expr.yield}.

0 commit comments

Comments
 (0)