]> granicus.if.org Git - python/commitdiff
Issue #23070: Fix a comment in the tutorial.
authorBerker Peksag <berker.peksag@gmail.com>
Wed, 17 Dec 2014 12:59:33 +0000 (14:59 +0200)
committerBerker Peksag <berker.peksag@gmail.com>
Wed, 17 Dec 2014 12:59:33 +0000 (14:59 +0200)
"Python" has 6 characters, not 7.

Reported by Ross Burnett.

Doc/tutorial/introduction.rst

index d30b1941416300b4b1de2e10e1c07d7ecc82ad6d..4164d49c75616fae685a42bc0face0dcf0195b3d 100644 (file)
@@ -309,7 +309,7 @@ indices, if both are within bounds.  For example, the length of ``word[1:3]`` is
 
 Attempting to use a index that is too large will result in an error::
 
-   >>> word[42]  # the word only has 7 characters
+   >>> word[42]  # the word only has 6 characters
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    IndexError: string index out of range