Practice ยท 3 of 3
Repair the Dangling Capture
This starter's generator captures a local **by reference** and dangles. Repair makeCounter so the state lives inside the coroutine frame (by-value parameter) โ the graded check forces a resumption that would read dead memory in the original.
Difficulty: advanced
Press Submit to check your solution.
Back to lesson: Practice: Hands on the Handle