diff options
author | Jacob Walls <jacobtylerwalls@gmail.com> | 2022-01-07 18:39:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-07 18:39:40 (GMT) |
commit | 273cb8e7577d143830404f6779946a0bedb58758 (patch) | |
tree | 7800fd9d42a9b8c108a4458da09b2c05b22a5b10 /Doc | |
parent | 9b7aa6a9d678ba798c57fa5bbc800014dfe4fb91 (diff) | |
download | cpython-273cb8e7577d143830404f6779946a0bedb58758.zip cpython-273cb8e7577d143830404f6779946a0bedb58758.tar.gz cpython-273cb8e7577d143830404f6779946a0bedb58758.tar.bz2 |
bpo-24650: Use full term "generator function" in yield expressions docs (GH-24663)
Diffstat (limited to 'Doc')
-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 991f2d7..0a6651e 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -427,9 +427,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 |