summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandro Tosi <sandro.tosi@gmail.com>2011-12-24 15:52:36 +0100
committerSandro Tosi <sandro.tosi@gmail.com>2011-12-24 15:52:36 +0100
commit4fbad84cb6e080f2374f4f19d8ed6bc154de04be (patch)
treec587926bbc8260985706bda0db1214c12711aa09
parent55ae12b019998ba1dcacfa20f5cc37f7fe9c6b67 (diff)
downloadcpython-git-4fbad84cb6e080f2374f4f19d8ed6bc154de04be.tar.gz
remove spurious dot from string formatting example; thanks to Anthon van der Neut from docs@
-rw-r--r--Doc/library/string.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 67547ad149..4c3abcd109 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -602,7 +602,7 @@ Expressing a percentage::
>>> points = 19.5
>>> total = 22
- >>> 'Correct answers: {:.2%}.'.format(points/total)
+ >>> 'Correct answers: {:.2%}'.format(points/total)
'Correct answers: 88.64%'
Using type-specific formatting::