summaryrefslogtreecommitdiffstats
path: root/Doc/tut
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-10-16 03:25:00 (GMT)
committerFred Drake <fdrake@acm.org>2001-10-16 03:25:00 (GMT)
commita8159164725c77abe7555e74a315976712c99aaa (patch)
tree58713e80a3cbcc053ce14a78fcd9adc37ff1f3a8 /Doc/tut
parent3eea25c3fa3c004b1128e555f36263cda9ff71f0 (diff)
downloadcpython-a8159164725c77abe7555e74a315976712c99aaa.zip
cpython-a8159164725c77abe7555e74a315976712c99aaa.tar.gz
cpython-a8159164725c77abe7555e74a315976712c99aaa.tar.bz2
Fix thinko in a comment about seeking with a file object.
Reported by Francesco Trentini.
Diffstat (limited to 'Doc/tut')
-rw-r--r--Doc/tut/tut.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex
index 3ee9127..9b76110 100644
--- a/Doc/tut/tut.tex
+++ b/Doc/tut/tut.tex
@@ -2873,7 +2873,7 @@ using the beginning of the file as the reference point.
\begin{verbatim}
>>> f=open('/tmp/workfile', 'r+')
>>> f.write('0123456789abcdef')
->>> f.seek(5) # Go to the 5th byte in the file
+>>> f.seek(5) # Go to the 6th byte in the file
>>> f.read(1)
'5'
>>> f.seek(-3, 2) # Go to the 3rd byte before the end