[docs] format specicifation language missing character in example

Anthon van der Neut anthon at mnt.org
Fri Dec 23 16:54:10 CET 2011


I was using the examples of the usage of .format as an extra testcase 
for pyjamas and found that a '.' was missing in

http://docs.python.org/library/string.html#formatspec

section 7.1.3.2 Format Examples
subsection 'Expressing a percentage':

>>>  'Correct answers: {:.2%}.'.format(points/total)
'Correct answers: 88.64%'

There should be a '.' (dot) before the closing quote in the last line.

Regards
Anthon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20111223/85dd000b/attachment.html>


More information about the docs mailing list