by tapirl · 3y ago · 0 comments
For reasons it’s never really bothered me, but the *other* loop bug does bite me some times. This is the one where the loop values are values.
The common mistakes wiki lists the capture bug twice, but doesn’t mention this bug.
Yeah, I guess you're right, the author didn't call it a bug... for _, *player := range players {
player.score = 0
}The author's title literally refers to it as a bug.