From: Sandro Tosi Date: Sat, 24 Dec 2011 14:52:36 +0000 (+0100) Subject: remove spurious dot from string formatting example; thanks to Anthon van der Neut... X-Git-Tag: v2.7.3rc1~215 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fbad84cb6e080f2374f4f19d8ed6bc154de04be;p=python remove spurious dot from string formatting example; thanks to Anthon van der Neut from docs@ --- diff --git a/Doc/library/string.rst b/Doc/library/string.rst index 67547ad149..4c3abcd109 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -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::