diff options
-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 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:: |