mirror of https://github.com/python/cpython
Update compound_stmts.rst (#9864)
This commit is contained in:
parent
b11c5667f9
commit
c8bb467f40
|
@ -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
|
||||
|
@ -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::
|
||||
|
||||
|
|
Loading…
Reference in New Issue