Skip to content

Commit 8bc6814

Browse files
bpo-24650: Use full term "generator function" in yield expressions docs (GH-24663)
(cherry picked from commit 273cb8e) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
1 parent 4d2cfd3 commit 8bc6814

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/reference/expressions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,9 @@ Yield expressions
422422
The yield expression is used when defining a :term:`generator` function
423423
or an :term:`asynchronous generator` function and
424424
thus can only be used in the body of a function definition. Using a yield
425-
expression in a function's body causes that function to be a generator,
425+
expression in a function's body causes that function to be a generator function,
426426
and using it in an :keyword:`async def` function's body causes that
427-
coroutine function to be an asynchronous generator. For example::
427+
coroutine function to be an asynchronous generator function. For example::
428428

429429
def gen(): # defines a generator function
430430
yield 123

0 commit comments

Comments
 (0)