summaryrefslogtreecommitdiff
path: root/Doc/reference
diff options
context:
space:
mode:
authorAndrés Delfino <adelfino@gmail.com>2018-10-14 05:18:16 -0300
committerAndrew Svetlov <andrew.svetlov@gmail.com>2018-10-14 11:18:16 +0300
commitc8bb467f4006fbf5d24d2491248bcbabee5d827e (patch)
tree852dcaf018ffe5d256d0dea945549ba8a4801edf /Doc/reference
parentb11c5667f99c4f0018e3394c4d07c519d835671a (diff)
downloadcpython-git-c8bb467f4006fbf5d24d2491248bcbabee5d827e.tar.gz
Update compound_stmts.rst (#9864)
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/compound_stmts.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index ebb18ca084..ddc796adcd 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -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::