]> 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:53:35 +0000 (15:53 +0100)
committerSandro Tosi <sandro.tosi@gmail.com>
Sat, 24 Dec 2011 14:53:35 +0000 (15:53 +0100)
Doc/library/string.rst

index 56a2a3401bac0b81a6c1a6ff6761ce19f2914b45..1f8e2304f01f1bebaafd70c3d3c3f05f8fa4a49c 100644 (file)
@@ -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::