summaryrefslogtreecommitdiffstats
path: root/Doc/library/collections.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-10-04 18:33:26 (GMT)
committerGeorg Brandl <georg@python.org>2008-10-04 18:33:26 (GMT)
commit0df797943cc46af236cce9c15e98c475f7ecccf0 (patch)
tree431d14d4336f0489878f7bf24a75426dac20535f /Doc/library/collections.rst
parentb186f3438419a6c881705a42db1ecc4e52f5241e (diff)
downloadcpython-0df797943cc46af236cce9c15e98c475f7ecccf0.zip
cpython-0df797943cc46af236cce9c15e98c475f7ecccf0.tar.gz
cpython-0df797943cc46af236cce9c15e98c475f7ecccf0.tar.bz2
#4000: fix several 2.x atavisms.
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r--Doc/library/collections.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 7dd8848..8bcc2ac 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -632,7 +632,7 @@ a fixed-width print format:
... def __str__(self):
... return 'Point: x=%6.3f y=%6.3f hypot=%6.3f' % (self.x, self.y, self.hypot)
- >>> for p in Point(3, 4), Point(14, 5/7.):
+ >>> for p in Point(3, 4), Point(14, 5/7):
... print(p)
Point: x= 3.000 y= 4.000 hypot= 5.000
Point: x=14.000 y= 0.714 hypot=14.018