summaryrefslogtreecommitdiff
path: root/Doc/library/string.rst
diff options
context:
space:
mode:
authorSandro Tosi <sandro.tosi@gmail.com>2011-12-24 15:53:35 +0100
committerSandro Tosi <sandro.tosi@gmail.com>2011-12-24 15:53:35 +0100
commitbaf30da2402d7eeb710fc26f0e013cb2de632225 (patch)
tree56b399cd3da2fc0ddfabb83efedfe445de90c6c9 /Doc/library/string.rst
parent0b7e5369f15046d73c7d1426bb8e28475cf1d05f (diff)
downloadcpython-git-baf30da2402d7eeb710fc26f0e013cb2de632225.tar.gz
remove spurious dot from string formatting example; thanks to Anthon van der Neut from docs@
Diffstat (limited to 'Doc/library/string.rst')
-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 56a2a3401b..1f8e2304f0 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -583,7 +583,7 @@ Expressing a percentage::
>>> points = 19
>>> total = 22
- >>> 'Correct answers: {:.2%}.'.format(points/total)
+ >>> 'Correct answers: {:.2%}'.format(points/total)
'Correct answers: 86.36%'
Using type-specific formatting::