Skip to content

Commit 2338156

Browse files
committed
Issue python#23070: Fix a comment in the tutorial.
"Python" has 6 characters, not 7. Reported by Ross Burnett.
1 parent 558dcf3 commit 2338156

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/tutorial/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ indices, if both are within bounds. For example, the length of ``word[1:3]`` is
305305

306306
Attempting to use a index that is too large will result in an error::
307307

308-
>>> word[42] # the word only has 7 characters
308+
>>> word[42] # the word only has 6 characters
309309
Traceback (most recent call last):
310310
File "<stdin>", line 1, in <module>
311311
IndexError: string index out of range

0 commit comments

Comments
 (0)