diff options
author | July Tikhonov <july.tikh@gmail.com> | 2022-07-22 17:03:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-22 17:03:17 (GMT) |
commit | 79d2f549adcbbefd4f2c0a0c9dd572bbbf252c62 (patch) | |
tree | 5addce4b62f6bb1556c2b4f800ba5c6073eb6441 | |
parent | 9c47cf337c595618dcac81efdefb8254e8ee2edf (diff) | |
download | cpython-79d2f549adcbbefd4f2c0a0c9dd572bbbf252c62.zip cpython-79d2f549adcbbefd4f2c0a0c9dd572bbbf252c62.tar.gz cpython-79d2f549adcbbefd4f2c0a0c9dd572bbbf252c62.tar.bz2 |
Fix async method reference links in `compound_stmts` docs (GH-94935)
-rw-r--r-- | Doc/reference/compound_stmts.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 6884071..93c1720 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -1495,7 +1495,7 @@ Is semantically equivalent to:: else: SUITE2 -See also :meth:`__aiter__` and :meth:`__anext__` for details. +See also :meth:`~object.__aiter__` and :meth:`~object.__anext__` for details. It is a :exc:`SyntaxError` to use an ``async for`` statement outside the body of a coroutine function. @@ -1537,7 +1537,7 @@ is semantically equivalent to:: if not hit_except: await aexit(manager, None, None, None) -See also :meth:`__aenter__` and :meth:`__aexit__` for details. +See also :meth:`~object.__aenter__` and :meth:`~object.__aexit__` for details. It is a :exc:`SyntaxError` to use an ``async with`` statement outside the body of a coroutine function. |