summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandro Tosi <sandro.tosi@gmail.com>2011-12-24 14:53:35 (GMT)
committerSandro Tosi <sandro.tosi@gmail.com>2011-12-24 14:53:35 (GMT)
commitbaf30da2402d7eeb710fc26f0e013cb2de632225 (patch)
tree56b399cd3da2fc0ddfabb83efedfe445de90c6c9
parent0b7e5369f15046d73c7d1426bb8e28475cf1d05f (diff)
downloadcpython-baf30da2402d7eeb710fc26f0e013cb2de632225.zip
cpython-baf30da2402d7eeb710fc26f0e013cb2de632225.tar.gz
cpython-baf30da2402d7eeb710fc26f0e013cb2de632225.tar.bz2
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 56a2a34..1f8e230 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::