diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-07-08 15:52:54 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-07-08 15:52:54 (GMT) |
commit | 93dd6934ff93510a81bb52a88b522b91401cfb76 (patch) | |
tree | 5e8e0a8a5be85c4d5ed1e694c2b90ff87765ecea /Doc/tutorial/introduction.rst | |
parent | f84e01df318e625e958ccccf566c8a01eea6ff6b (diff) | |
download | cpython-93dd6934ff93510a81bb52a88b522b91401cfb76.zip cpython-93dd6934ff93510a81bb52a88b522b91401cfb76.tar.gz cpython-93dd6934ff93510a81bb52a88b522b91401cfb76.tar.bz2 |
#18403: fix an off-by-one typo noticed by Xue Fuqiao.
Diffstat (limited to 'Doc/tutorial/introduction.rst')
-rw-r--r-- | Doc/tutorial/introduction.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index 36ede2b..4101cdc 100644 --- a/Doc/tutorial/introduction.rst +++ b/Doc/tutorial/introduction.rst @@ -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 |