commit | baf30da2402d7eeb710fc26f0e013cb2de632225 | [log] [tgz] |
---|---|---|
author | Sandro Tosi <sandro.tosi@gmail.com> | Sat Dec 24 15:53:35 2011 +0100 |
committer | Sandro Tosi <sandro.tosi@gmail.com> | Sat Dec 24 15:53:35 2011 +0100 |
tree | 56b399cd3da2fc0ddfabb83efedfe445de90c6c9 | |
parent | 0b7e5369f15046d73c7d1426bb8e28475cf1d05f [diff] [blame] |
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 56a2a34..1f8e230 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst
@@ -583,7 +583,7 @@ >>> points = 19 >>> total = 22 - >>> 'Correct answers: {:.2%}.'.format(points/total) + >>> 'Correct answers: {:.2%}'.format(points/total) 'Correct answers: 86.36%' Using type-specific formatting::