]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update compound_stmts.rst (#9864)
authorAndrés Delfino <adelfino@gmail.com>
Sun, 14 Oct 2018 08:18:16 +0000 (05:18 -0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Sun, 14 Oct 2018 08:18:16 +0000 (11:18 +0300)
Doc/reference/compound_stmts.rst

index ebb18ca0847725258e117562774ed8d0a5f5e0f3..ddc796adcd77f69f644748ef28a7c5e8238bf257 100644 (file)
@@ -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::