]> granicus.if.org Git - python/commitdiff
controlflow: Use full example for "5 through 9" (GH-5907)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 10 Mar 2018 23:25:14 +0000 (15:25 -0800)
committerGitHub <noreply@github.com>
Sat, 10 Mar 2018 23:25:14 +0000 (15:25 -0800)
Replace example result of "5 through 9" with complete list: "5, 6, 7, 8, 9".
This format is more consistent with the surrounding examples.
(cherry picked from commit 83d7062d2dc5eacfef578e072bca4747c346fdae)

Co-authored-by: Steven M. Vascellaro <S.Vascellaro@gmail.com>
Doc/tutorial/controlflow.rst

index 36b093950e10d82edda8750c7dbdd9aa4b570583..30ef159f8b369aeb14aa9b14eaf4804d9688be1b 100644 (file)
@@ -105,7 +105,7 @@ is possible to let the range start at another number, or to specify a different
 increment (even negative; sometimes this is called the 'step')::
 
     range(5, 10)
-       5 through 9
+       5, 6, 7, 8, 9
 
     range(0, 10, 3)
        0, 3, 6, 9