Commit cce385b
authored
fix(docs): correct misleading set() LRU ordering explanation in explanation/index.md (#54)
The previous snippet implied that `OrderedDict.__setitem__` alone moves
existing keys to the end, which is incorrect. Added `move_to_end()` call
and updated the surrounding text to clarify that explicit reordering is
required for existing keys. Closes #48.
Made-with: Cursor1 parent 6bd36f4 commit cce385b
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
0 commit comments