Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b11c566 commit c8bb467Copy full SHA for c8bb467
1 file changed
Doc/reference/compound_stmts.rst
@@ -765,8 +765,8 @@ Is semantically equivalent to::
765
766
See also :meth:`__aiter__` and :meth:`__anext__` for details.
767
768
-It is a :exc:`SyntaxError` to use ``async for`` statement outside of an
769
-:keyword:`async def` function.
+It is a :exc:`SyntaxError` to use an ``async for`` statement outside of a
+coroutine.
770
771
772
.. index:: statement: async with
@@ -803,8 +803,8 @@ Is semantically equivalent to::
803
804
See also :meth:`__aenter__` and :meth:`__aexit__` for details.
805
806
-It is a :exc:`SyntaxError` to use ``async with`` statement outside of an
807
+It is a :exc:`SyntaxError` to use an ``async with`` statement outside of a
808
809
.. seealso::
810
0 commit comments