Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4d5208d

Browse files
committed
Fix typo (reported by Hiro Ashiya).
1 parent 5279fb9 commit 4d5208d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/collections.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,10 +821,10 @@ the items are returned in the order their keys were first added.
821821

822822
>>> d = OrderedDict.fromkeys('abcde')
823823
>>> d.move_to_end('b')
824-
>>> ''.join(d.keys)
824+
>>> ''.join(d.keys())
825825
'acdeb'
826826
>>> d.move_to_end('b', last=False)
827-
>>> ''.join(d.keys)
827+
>>> ''.join(d.keys())
828828
'bacde'
829829

830830
.. versionadded:: 3.2

0 commit comments

Comments
 (0)