Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b7aa6a commit 273cb8eCopy full SHA for 273cb8e
1 file changed
Doc/reference/expressions.rst
@@ -427,9 +427,9 @@ Yield expressions
427
The yield expression is used when defining a :term:`generator` function
428
or an :term:`asynchronous generator` function and
429
thus can only be used in the body of a function definition. Using a yield
430
-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,
431
and using it in an :keyword:`async def` function's body causes that
432
-coroutine function to be an asynchronous generator. For example::
+coroutine function to be an asynchronous generator function. For example::
433
434
def gen(): # defines a generator function
435
yield 123
0 commit comments