Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67fdaa4

Browse files
committed
Correct typos in Ping's email address.
Remove premature use of negative indexes in string operation examples; negative indexes have not been explained at that point, and the use of negative indexes are not necessary for the examples.
1 parent 990b0fe commit 67fdaa4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/tut/tut.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ \subsection{Strings \label{strings}}
620620
Traceback (most recent call last):
621621
File "<stdin>", line 1, in ?
622622
TypeError: object doesn't support item assignment
623-
>>> word[:-1] = 'Splat'
623+
>>> word[:1] = 'Splat'
624624
Traceback (most recent call last):
625625
File "<stdin>", line 1, in ?
626626
TypeError: object doesn't support slice assignment
@@ -632,7 +632,7 @@ \subsection{Strings \label{strings}}
632632
\begin{verbatim}
633633
>>> 'x' + word[1:]
634634
'xelpA'
635-
>>> 'Splat' + word[-1:]
635+
>>> 'Splat' + word[4]
636636
'SplatA'
637637
\end{verbatim}
638638

@@ -1645,7 +1645,7 @@ \section{More on Lists \label{moreLists}}
16451645

16461646

16471647
\subsection{Using Lists as Stacks \label{lists-as-stacks}}
1648-
\sectionauthor{Ka-Ping Yee}{ping@lfs.org}
1648+
\sectionauthor{Ka-Ping Yee}{ping@lfw.org}
16491649

16501650
The list methods make it very easy to use a list as a stack, where the
16511651
last element added is the first element retrieved (``last-in,
@@ -1673,7 +1673,7 @@ \subsection{Using Lists as Stacks \label{lists-as-stacks}}
16731673

16741674

16751675
\subsection{Using Lists as Queues \label{lists-as-queues}}
1676-
\sectionauthor{Ka-Ping Yee}{ping@lfs.org}
1676+
\sectionauthor{Ka-Ping Yee}{ping@lfw.org}
16771677

16781678
You can also use a list conveniently as a queue, where the first
16791679
element added is the first element retrieved (``first-in,

0 commit comments

Comments
 (0)