From: Sandro Tosi Date: Sat, 24 Dec 2011 14:53:35 +0000 (+0100) Subject: remove spurious dot from string formatting example; thanks to Anthon van der Neut... X-Git-Tag: v3.2.3rc1~241 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=baf30da2402d7eeb710fc26f0e013cb2de632225;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 56a2a3401b..1f8e2304f0 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -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::