]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-24650: Use full term "generator function" in yield expressions docs (GH-24663)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 7 Jan 2022 19:00:45 +0000 (11:00 -0800)
committerGitHub <noreply@github.com>
Fri, 7 Jan 2022 19:00:45 +0000 (11:00 -0800)
(cherry picked from commit 273cb8e7577d143830404f6779946a0bedb58758)

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Doc/reference/expressions.rst

index 5333de911c2c889733e93ec520ec88552b0c48ca..606e773456032945059e0453f53d5f496d87cc97 100644 (file)
@@ -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