Minor wording change on slicing aide-memoire.

This commit is contained in:
Steve Holden 2007-04-26 14:23:12 +00:00
parent 94b706be35
commit 6e6eaa7a67
1 changed files with 1 additions and 1 deletions

View File

@ -813,7 +813,7 @@ Traceback (most recent call last):
IndexError: string index out of range IndexError: string index out of range
\end{verbatim} \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 pointing \emph{between} characters, with the left edge of the first
character numbered 0. Then the right edge of the last character of a character numbered 0. Then the right edge of the last character of a
string of \var{n} characters has index \var{n}, for example: string of \var{n} characters has index \var{n}, for example: