[Python-checkins] Update compound_stmts.rst (GH-9864) (GH-9869)
Andrew Svetlov
webhook-mailer at python.org
Sun Oct 14 04:33:02 EDT 2018
https://github.com/python/cpython/commit/91b863d93b93e15799af10d9117982840ecf3462
commit: 91b863d93b93e15799af10d9117982840ecf3462
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Andrew Svetlov <andrew.svetlov at gmail.com>
date: 2018-10-14T11:32:58+03:00
summary:
Update compound_stmts.rst (GH-9864) (GH-9869)
(cherry picked from commit c8bb467f4006fbf5d24d2491248bcbabee5d827e)
Co-authored-by: Andrés Delfino <adelfino at gmail.com>
files:
M Doc/reference/compound_stmts.rst
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index aeb4ada4fc43..2e832c2d22c1 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -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::
More information about the Python-checkins
mailing list