Skip to content

Commit c8bb467

Browse files
andresdelfinoasvetlov
authored andcommitted
Update compound_stmts.rst (#9864)
1 parent b11c566 commit c8bb467

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/reference/compound_stmts.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -765,8 +765,8 @@ Is semantically equivalent to::
765765

766766
See also :meth:`__aiter__` and :meth:`__anext__` for details.
767767

768-
It is a :exc:`SyntaxError` to use ``async for`` statement outside of an
769-
:keyword:`async def` function.
768+
It is a :exc:`SyntaxError` to use an ``async for`` statement outside of a
769+
coroutine.
770770

771771

772772
.. index:: statement: async with
@@ -803,8 +803,8 @@ Is semantically equivalent to::
803803

804804
See also :meth:`__aenter__` and :meth:`__aexit__` for details.
805805

806-
It is a :exc:`SyntaxError` to use ``async with`` statement outside of an
807-
:keyword:`async def` function.
806+
It is a :exc:`SyntaxError` to use an ``async with`` statement outside of a
807+
coroutine.
808808

809809
.. seealso::
810810

0 commit comments

Comments
 (0)