Minor wording change on slicing aide-memoire.
This commit is contained in:
parent
94b706be35
commit
6e6eaa7a67
|
@ -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…
Reference in New Issue