diff options
-rw-r--r-- | Doc/library/collections.rst | 2 |
1 files changed, 1 insertions, 1 deletions
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__ |