From: Raymond Hettinger Date: Thu, 15 Nov 2007 02:58:20 +0000 (+0000) Subject: Fixup example in docs. X-Git-Tag: v2.6a1~1053 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=213ae014dbeecf44a7adf2e14f38e0a52258f204;p=python Fixup example in docs. --- diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 1e7b427dc4..0c88861c76 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -464,7 +464,7 @@ two additonal methods and a read-only attribute. Point(x=33, y=22) >>> for recordnum, record in inventory: - ... inventory[recordnum] = record.replace('total', record.price * record.quantity) + ... inventory[recordnum] = record.replace(total = record.price * record.quantity) .. attribute:: somenamedtuple.__fields__