]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#11138: fix order of fill and align specifiers.
authorGeorg Brandl <georg@python.org>
Mon, 7 Feb 2011 12:10:46 +0000 (12:10 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 7 Feb 2011 12:10:46 +0000 (12:10 +0000)
Doc/library/string.rst

index 0b4ded7fabd4b15dc282c6a162c75a62ab598bd9..4b6a6747a452aa886fa29789dd3b09c8e13ec5ea 100644 (file)
@@ -595,7 +595,7 @@ Using type-specific formatting::
 Nesting arguments and more complex examples::
 
    >>> for align, text in zip('<^>', ['left', 'center', 'right']):
-   ...     '{0:{align}{fill}16}'.format(text, fill=align, align=align)
+   ...     '{0:{fill}{align}16}'.format(text, fill=align, align=align)
    ...
    'left<<<<<<<<<<<<'
    '^^^^^center^^^^^'