bpo-24650: Use full term "generator function" in yield expressions docs (GH-24663)

This commit is contained in:
Jacob Walls 2022-01-07 13:39:40 -05:00 committed by GitHub
parent 9b7aa6a9d6
commit 273cb8e757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View 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