From: Vivek Vashist Date: Thu, 16 Dec 2021 10:40:12 +0000 (+1030) Subject: Fix the output of built-in iter() function example in Iterators (Section 9.8) of... X-Git-Tag: v3.11.0a4~188 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5d18a5014f649368b5a4bca94e9ec7d2908b481;p=thirdparty%2FPython%2Fcpython.git Fix the output of built-in iter() function example in Iterators (Section 9.8) of The Python Tutorial (GH-30110) Updated the output for it=iter(s) from to --- diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 0d780e3ba896..f44cb0b4e905 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -797,7 +797,7 @@ using the :func:`next` built-in function; this example shows how it all works:: >>> s = 'abc' >>> it = iter(s) >>> it - + >>> next(it) 'a' >>> next(it)