summaryrefslogtreecommitdiff
path: root/Doc/reference/expressions.rst
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2015-05-05 12:02:01 -0700
committerGuido van Rossum <guido@python.org>2015-05-05 12:02:01 -0700
commitd531d1c81fbd46c59e76b0bfef0485b77e168d70 (patch)
treee276c6a2f381c8f063f7f4e51fd8c937605d5c07 /Doc/reference/expressions.rst
parented6003a1de8862312db4c185205c82a32ff65bbf (diff)
downloadcpython-d531d1c81fbd46c59e76b0bfef0485b77e168d70.tar.gz
Issue 24088: Clarify semantics of yield expression.
Diffstat (limited to 'Doc/reference/expressions.rst')
-rw-r--r--Doc/reference/expressions.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index 1a5088abbc..2d19660ae7 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -325,7 +325,7 @@ 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.
When a generator function is called, it returns an iterator known as a
-generator. That generator then controls the execution of a generator function.
+generator. That generator then controls the execution of the generator function.
The execution starts when one of the generator's methods is called. At that
time, the execution proceeds to the first yield expression, where it is
suspended again, returning the value of :token:`expression_list` to the generator's