File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -765,8 +765,8 @@ Is semantically equivalent to::
765
765
766
766
See also :meth: `__aiter__ ` and :meth: `__anext__ ` for details.
767
767
768
- It is a :exc: `SyntaxError ` to use ``async for `` statement outside of an
769
- :keyword: ` async def ` function .
768
+ It is a :exc: `SyntaxError ` to use an ``async for `` statement outside of a
769
+ coroutine .
770
770
771
771
772
772
.. index :: statement: async with
@@ -803,8 +803,8 @@ Is semantically equivalent to::
803
803
804
804
See also :meth: `__aenter__ ` and :meth: `__aexit__ ` for details.
805
805
806
- It is a :exc: `SyntaxError ` to use ``async with `` statement outside of an
807
- :keyword: ` async def ` function .
806
+ It is a :exc: `SyntaxError ` to use an ``async with `` statement outside of a
807
+ coroutine .
808
808
809
809
.. seealso ::
810
810
You can’t perform that action at this time.
0 commit comments