Skip to content

Commit a5770aa

Browse files
committed
#11138: fix order of fill and align specifiers.
1 parent 7ac3419 commit a5770aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/string.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ Using type-specific formatting::
595595
Nesting arguments and more complex examples::
596596

597597
>>> for align, text in zip('<^>', ['left', 'center', 'right']):
598-
... '{0:{align}{fill}16}'.format(text, fill=align, align=align)
598+
... '{0:{fill}{align}16}'.format(text, fill=align, align=align)
599599
...
600600
'left<<<<<<<<<<<<'
601601
'^^^^^center^^^^^'

0 commit comments

Comments
 (0)