diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-01-07 19:01:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-07 19:01:33 (GMT) |
commit | 75a1865d1ce352909ad9a30d001486bbd7d3ed75 (patch) | |
tree | a6dd5ba931a0091713942b23ac2f4943df68458c /Doc/reference | |
parent | 6630952cf0955d205e48874a53b69868c97b8875 (diff) | |
download | cpython-75a1865d1ce352909ad9a30d001486bbd7d3ed75.zip cpython-75a1865d1ce352909ad9a30d001486bbd7d3ed75.tar.gz cpython-75a1865d1ce352909ad9a30d001486bbd7d3ed75.tar.bz2 |
[3.10] bpo-24650: Use full term "generator function" in yield expressions docs (GH-24663) (GH-30461)
(cherry picked from commit 273cb8e7577d143830404f6779946a0bedb58758)
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Automerge-Triggered-By: GH:iritkatriel
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/expressions.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index c3f58fc..d4aae29 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -422,9 +422,9 @@ Yield expressions The yield expression is used when defining a :term:`generator` function or an :term:`asynchronous generator` function and thus can only be used in the body of a function definition. Using a yield -expression in a function's body causes that function to be a generator, +expression in a function's body causes that function to be a generator function, and using it in an :keyword:`async def` function's body causes that -coroutine function to be an asynchronous generator. For example:: +coroutine function to be an asynchronous generator function. For example:: def gen(): # defines a generator function yield 123 |