From: Andrés Delfino Date: Sun, 14 Oct 2018 08:18:16 +0000 (-0300) Subject: Update compound_stmts.rst (#9864) X-Git-Tag: v3.8.0a1~774 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c8bb467f4006fbf5d24d2491248bcbabee5d827e;p=thirdparty%2FPython%2Fcpython.git Update compound_stmts.rst (#9864) --- diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index ebb18ca08477..ddc796adcd77 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::