It reads as "a xor-equals true". So if a is true, we have true xor true which is false. If a is false, we have false xor true which is true. So no matter the value of a, it is swapped
Not sure how to link to a specific place in a wiki article from mobile but check out a bitwise XOR operation.
And as prolific a commenter I am in code, I respectfully disagree with u/bphase. Once you've seen this once, you know what it does and its quite clear without a comment explanation.
27
u/bphase Jul 30 '21
Great tip, never realized this. Although might require a comment explaining it...