Update compound_stmts.rst (GH-9864) (GH-9869)

(cherry picked from commit c8bb467f40)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
This commit is contained in:
Miss Islington (bot) 2018-10-14 01:32:58 -07:00 committed by Andrew Svetlov
parent b1c800303e
commit 91b863d93b
1 changed files with 4 additions and 4 deletions

View File

@ -764,8 +764,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
@ -802,8 +802,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::