From: Don Kirkby Date: Mon, 10 Feb 2020 00:57:46 +0000 (-0800) Subject: Grammar fix in tutorial (GH-18425) X-Git-Tag: v3.9.0a4~94 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ed4d251587c36c3853daf42602eaad121b59bba;p=thirdparty%2FPython%2Fcpython.git Grammar fix in tutorial (GH-18425) --- diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 7dfd33af2588..f05f5edd5ccc 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -142,7 +142,7 @@ the list, thus saving space. We say such an object is :term:`iterable`, that is, suitable as a target for functions and constructs that expect something from which they can obtain successive items until the supply is exhausted. We have seen that -the :keyword:`for` statement is such a construct, while an example of function +the :keyword:`for` statement is such a construct, while an example of a function that takes an iterable is :func:`sum`:: >>> sum(range(4)) # 0 + 1 + 2 + 3