]> granicus.if.org Git - python/commitdiff
controlflow: Use full example for "5 through 9" (GH-5907)
authorSteven M. Vascellaro <S.Vascellaro@gmail.com>
Fri, 9 Mar 2018 19:57:21 +0000 (14:57 -0500)
committerMariatta <Mariatta@users.noreply.github.com>
Fri, 9 Mar 2018 19:57:21 +0000 (11:57 -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.

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