Skip to content

Fix grammar and use "coroutine" instead of "async def function" in compound_stmts.rst #9864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 14, 2018
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