]> granicus.if.org Git - python/commitdiff
#18403: fix an off-by-one typo noticed by Xue Fuqiao.
authorEzio Melotti <ezio.melotti@gmail.com>
Mon, 8 Jul 2013 15:52:54 +0000 (17:52 +0200)
committerEzio Melotti <ezio.melotti@gmail.com>
Mon, 8 Jul 2013 15:52:54 +0000 (17:52 +0200)
Doc/tutorial/introduction.rst

index 36ede2bc84013496962ca4cfb557dae1704de7f0..4101cdc777e0ca596f8b9517e4199751b2734ce9 100644 (file)
@@ -262,7 +262,7 @@ to obtain individual characters, *slicing* allows you to obtain substring::
 
    >>> word[0:2]  # characters from position 0 (included) to 2 (excluded)
    'Py'
-   >>> word[2:5]  # characters from position 2 (included) to 4 (excluded)
+   >>> word[2:5]  # characters from position 2 (included) to 5 (excluded)
    'tho'
 
 Note how the start is always included, and the end always excluded.  This