From a5770aa9ca344a038fee4f13b5f1334d5bec98c9 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 7 Feb 2011 12:10:46 +0000 Subject: [PATCH] #11138: fix order of fill and align specifiers. --- Doc/library/string.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/string.rst b/Doc/library/string.rst index 0b4ded7fab..4b6a6747a4 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^^^^^' -- 2.40.0