diff --git a/Doc/library/string.rst b/Doc/library/string.rst index 67547ad1499..4c3abcd1091 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::