]> granicus.if.org Git - python/commitdiff
remove spurious dot from string formatting example; thanks to Anthon van der Neut...
authorSandro Tosi <sandro.tosi@gmail.com>
Sat, 24 Dec 2011 14:52:36 +0000 (15:52 +0100)
committerSandro Tosi <sandro.tosi@gmail.com>
Sat, 24 Dec 2011 14:52:36 +0000 (15:52 +0100)
Doc/library/string.rst

index 67547ad1499b30d3e9eaba80e53a4fa480da212e..4c3abcd1091abfa2c8820945629e3c13fa7bf46b 100644 (file)
@@ -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::