Hacker News new | ask | show | jobs
by zaphar 1264 days ago
There are not multiple mutable references in the same scope. The mutable reference is only valid for the scope of the function `f()`. This doesn't sound like a problem understanding mutable references but a problem understanding scope.