summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-09-30 07:24:48 (GMT)
committerGeorg Brandl <georg@python.org>2006-09-30 07:24:48 (GMT)
commit21d994390cc67769525962849e10a085be6d4734 (patch)
treee01b1cb41778fe2a8b43d36df24121879e132ac1
parentf8508cca47a9612df4d7453ba8462b7916f46b01 (diff)
downloadcpython-21d994390cc67769525962849e10a085be6d4734.zip
cpython-21d994390cc67769525962849e10a085be6d4734.tar.gz
cpython-21d994390cc67769525962849e10a085be6d4734.tar.bz2
Bug #1567375: a minor logical glitch in example description.
-rw-r--r--Doc/tut/tut.tex6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex
index bb24a38..e2ebbba 100644
--- a/Doc/tut/tut.tex
+++ b/Doc/tut/tut.tex
@@ -3060,6 +3060,7 @@ Here are two ways to write a table of squares and cubes:
8 64 512
9 81 729
10 100 1000
+
>>> for x in range(1,11):
... print '%2d %3d %4d' % (x, x*x, x*x*x)
...
@@ -3075,8 +3076,9 @@ Here are two ways to write a table of squares and cubes:
10 100 1000
\end{verbatim}
-(Note that one space between each column was added by the way
-\keyword{print} works: it always adds spaces between its arguments.)
+(Note that in the first example, one space between each column was
+added by the way \keyword{print} works: it always adds spaces between
+its arguments.)
This example demonstrates the \method{rjust()} method of string objects,
which right-justifies a string in a field of a given width by padding