Shallow copy, deep copy, and the nested-dict bug — step 7 of 9
Cursor wrote a function that's supposed to take a config dict, return a
modified copy with debug set to True, and leave the original alone.
Right now the function mutates the original instead of copying it. The expected output is:
original debug: False
modified debug: True
Fix line 2 so the function works on a real copy.
The break is on line 2 — but read the whole snippet first.
⌘↵ runs the editor.read, then continue.
Cursor wrote a function that's supposed to take a config dict, return a
modified copy with debug set to True, and leave the original alone.
Right now the function mutates the original instead of copying it. The expected output is:
original debug: False
modified debug: True
Fix line 2 so the function works on a real copy.
The break is on line 2 — but read the whole snippet first.
this step needs the editor
on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.