diff options
author | Victor Stinner <vstinner@python.org> | 2020-08-14 10:20:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-14 10:20:05 (GMT) |
commit | bb0b08540cc93e56f3f1bde1b39ce086d9e35fe1 (patch) | |
tree | 07b1760928dc17078a061fe7424f0f9303addb1c /Doc/reference/datamodel.rst | |
parent | 87d8287865e5c9f137f6b5cf8c34c2c509eb5e9d (diff) | |
download | cpython-bb0b08540cc93e56f3f1bde1b39ce086d9e35fe1.zip cpython-bb0b08540cc93e56f3f1bde1b39ce086d9e35fe1.tar.gz cpython-bb0b08540cc93e56f3f1bde1b39ce086d9e35fe1.tar.bz2 |
bpo-40204: Fix reference to terms in the doc (GH-21865)
Sphinx 3 requires to refer to terms with the exact case.
For example, fix the Sphinx 3 warning:
Doc/library/pkgutil.rst:71: WARNING: term Loader not found in case
sensitive match.made a reference to loader instead.
Diffstat (limited to 'Doc/reference/datamodel.rst')
-rw-r--r-- | Doc/reference/datamodel.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index c5a7f04..a817408 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -2601,7 +2601,7 @@ Awaitable Objects ----------------- An :term:`awaitable` object generally implements an :meth:`__await__` method. -:term:`Coroutine` objects returned from :keyword:`async def` functions +:term:`Coroutine objects <coroutine>` returned from :keyword:`async def` functions are awaitable. .. note:: @@ -2626,7 +2626,7 @@ are awaitable. Coroutine Objects ----------------- -:term:`Coroutine` objects are :term:`awaitable` objects. +:term:`Coroutine objects <coroutine>` are :term:`awaitable` objects. A coroutine's execution can be controlled by calling :meth:`__await__` and iterating over the result. When the coroutine has finished executing and returns, the iterator raises :exc:`StopIteration`, and the exception's |