]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update compound_stmts.rst (GH-9864) (GH-9869)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 14 Oct 2018 08:32:58 +0000 (01:32 -0700)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Sun, 14 Oct 2018 08:32:58 +0000 (11:32 +0300)
(cherry picked from commit c8bb467f4006fbf5d24d2491248bcbabee5d827e)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Doc/reference/compound_stmts.rst

index aeb4ada4fc4346ee3863354d7c63a4af19761f74..2e832c2d22c1636ad6c3a323241d8cf60ac483b2 100644 (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::