There was an error while loading. Please reload this page.
1 parent 4d2cfd3 commit 8bc6814Copy full SHA for 8bc6814
1 file changed
Doc/reference/expressions.rst
@@ -422,9 +422,9 @@ Yield expressions
422
The yield expression is used when defining a :term:`generator` function
423
or an :term:`asynchronous generator` function and
424
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,
+expression in a function's body causes that function to be a generator function,
426
and using it in an :keyword:`async def` function's body causes that
427
-coroutine function to be an asynchronous generator. For example::
+coroutine function to be an asynchronous generator function. For example::
428
429
def gen(): # defines a generator function
430
yield 123
0 commit comments