mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Minor wording change on slicing aide-memoire.
This commit is contained in:
parent
94b706be35
commit
6e6eaa7a67
1 changed files with 1 additions and 1 deletions
|
@ -813,7 +813,7 @@ Traceback (most recent call last):
|
|||
IndexError: string index out of range
|
||||
\end{verbatim}
|
||||
|
||||
The best way to remember how slices work is to think of the indices as
|
||||
One way to remember how slices work is to think of the indices as
|
||||
pointing \emph{between} characters, with the left edge of the first
|
||||
character numbered 0. Then the right edge of the last character of a
|
||||
string of \var{n} characters has index \var{n}, for example:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue