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

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


http://hg.python.org/cpython/rev/a1edc6e4b49c
changeset: 74155:a1edc6e4b49c
branch: 2.7
parent: 74152:71f7175e2b34
user: Sandro Tosi <sandro.tosi at gmail.com>
date: Sat Dec 24 15:52:36 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
@@ -602,7 +602,7 @@
 
 >>> 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::
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

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