From 6549639a90b0ecbb79814f8ce89a263cef998bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Sat, 13 Oct 2018 21:31:55 -0300 Subject: [PATCH] Update compound_stmts.rst --- Doc/reference/compound_stmts.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index ebb18ca0847725..ddc796adcd77f6 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::