From: Georg Brandl Date: Mon, 7 Feb 2011 12:10:46 +0000 (+0000) Subject: #11138: fix order of fill and align specifiers. X-Git-Tag: v3.2rc3~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a5770aa9ca344a038fee4f13b5f1334d5bec98c9;p=thirdparty%2FPython%2Fcpython.git #11138: fix order of fill and align specifiers. --- diff --git a/Doc/library/string.rst b/Doc/library/string.rst index 0b4ded7fabd4..4b6a6747a452 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -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^^^^^'