]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-24650: Use full term "generator function" in yield expressions docs (GH-24663)
authorJacob Walls <jacobtylerwalls@gmail.com>
Fri, 7 Jan 2022 18:39:40 +0000 (13:39 -0500)
committerGitHub <noreply@github.com>
Fri, 7 Jan 2022 18:39:40 +0000 (18:39 +0000)
Doc/reference/expressions.rst

index 991f2d717a0a60c1f22fb41be1c326b1f6e03805..0a6651ea5ed673f0c9105ee13314428f4b1372c2 100644 (file)
@@ -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