It's because of how code is parsed from left to right. You can learn more from this thread that touched the exact same subject a few days ago: Why does this borrow last for whole statement?
3 Likes
It's because of how code is parsed from left to right. You can learn more from this thread that touched the exact same subject a few days ago: Why does this borrow last for whole statement?