From baf30da2402d7eeb710fc26f0e013cb2de632225 Mon Sep 17 00:00:00 2001 From: Sandro Tosi Date: Sat, 24 Dec 2011 15:53:35 +0100 Subject: remove spurious dot from string formatting example; thanks to Anthon van der Neut from docs@ --- Doc/library/string.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/string.rst b/Doc/library/string.rst index 56a2a34..1f8e230 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:: -- cgit v0.12