Skip to content

Commit 19dac07

Browse files
committed
Issue 24088: Clarify semantics of yield expression (merge from 3.4).
2 parents ad17be7 + d0150ad commit 19dac07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/expressions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ thus can only be used in the body of a function definition. Using a yield
325325
expression in a function's body causes that function to be a generator.
326326

327327
When a generator function is called, it returns an iterator known as a
328-
generator. That generator then controls the execution of a generator function.
328+
generator. That generator then controls the execution of the generator function.
329329
The execution starts when one of the generator's methods is called. At that
330330
time, the execution proceeds to the first yield expression, where it is
331331
suspended again, returning the value of :token:`expression_list` to the generator's

0 commit comments

Comments
 (0)