Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Doc/reference/compound_stmts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -765,8 +765,8 @@ Is semantically equivalent to::

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

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


.. index:: statement: async with
Expand Down Expand Up @@ -803,8 +803,8 @@ Is semantically equivalent to::

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

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

.. seealso::

Expand Down