diff options
author | Sandro Tosi <sandro.tosi@gmail.com> | 2011-12-24 14:53:35 (GMT) |
---|---|---|
committer | Sandro Tosi <sandro.tosi@gmail.com> | 2011-12-24 14:53:35 (GMT) |
commit | baf30da2402d7eeb710fc26f0e013cb2de632225 (patch) | |
tree | 56b399cd3da2fc0ddfabb83efedfe445de90c6c9 /Doc/library/string.rst | |
parent | 0b7e5369f15046d73c7d1426bb8e28475cf1d05f (diff) | |
download | cpython-baf30da2402d7eeb710fc26f0e013cb2de632225.zip cpython-baf30da2402d7eeb710fc26f0e013cb2de632225.tar.gz cpython-baf30da2402d7eeb710fc26f0e013cb2de632225.tar.bz2 |
remove spurious dot from string formatting example; thanks to Anthon van der Neut from docs@
Diffstat (limited to 'Doc/library/string.rst')
-rw-r--r-- | Doc/library/string.rst | 2 |
1 files changed, 1 insertions, 1 deletions
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:: |