[Python-checkins] cpython (3.2): remove spurious dot from string formatting example; thanks to Anthon van der

sandro.tosi python-checkins at python.org
Sat Dec 24 16:02:59 CET 2011


http://hg.python.org/cpython/rev/6be3cbbe5013
changeset: 74156:6be3cbbe5013
branch: 3.2
parent: 74153:ba2f6978502e
user: Sandro Tosi <sandro.tosi at gmail.com>
date: Sat Dec 24 15:53:35 2011 +0100
summary:
 remove spurious dot from string formatting example; thanks to Anthon van der Neut from docs@
files:
 Doc/library/string.rst | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -583,7 +583,7 @@
 
 >>> points = 19
 >>> total = 22
- >>> 'Correct answers: {:.2%}.'.format(points/total)
+ >>> 'Correct answers: {:.2%}'.format(points/total)
 'Correct answers: 86.36%'
 
 Using type-specific formatting::
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /