]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo
authorRaymond Hettinger <python@rcn.com>
Fri, 5 Dec 2003 06:39:54 +0000 (06:39 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 5 Dec 2003 06:39:54 +0000 (06:39 +0000)
Doc/tut/tut.tex

index f84978a39f353703a7465f19de09cc1e562c3e3a..e3d9ea33481e209adb95547438f1ef2d646b3add 100644 (file)
@@ -4454,7 +4454,7 @@ running \samp{python demo.py one two three} at the command line:
 
 \begin{verbatim}
 >>> import sys
->>> print sys.argv[]
+>>> print sys.argv
 ['demo.py', 'one', 'two', 'three']
 \end{verbatim}
 
@@ -4500,7 +4500,7 @@ optimized solutions:
 
 \section{Mathematics\label{mathematics}}
 
-The \ulink{\module{math}}{../lib/module-math.html} math module gives
+The \ulink{\module{math}}{../lib/module-math.html} module gives
 access to the underlying C library functions for floating point math:
 
 \begin{verbatim}
@@ -4618,9 +4618,9 @@ quickly demonstrates that the traditional approach is faster:
 \begin{verbatim}
 >>> from timeit import Timer
 >>> dir(Timer)
->>> Timer('t=a; a=b; b=t', 'a=1; b=1').timeit()
+>>> Timer('t=a; a=b; b=t', 'a=1; b=2').timeit()
 0.60864915603680925
->>> Timer('a,b = b,a', 'a=1; b=1').timeit()
+>>> Timer('a,b = b,a', 'a=1; b=2').timeit()
 0.8625194857439773
 \end{verbatim}