fixed incorrect bitmask in xor example

This commit is contained in:
Alexander Sisco 2025-02-11 15:21:26 -08:00
parent f7e8d4c444
commit 2437edd51f

View file

@ -175,8 +175,8 @@ pub fn main() !void {
// -XOR op- ---expanded--- in the output.
// _______________/
// / /
// 0110 1 1 0 0
// ^ 1111 0 1 0 1 (bitmask)
// 1100 1 1 0 0
// ^ 0101 0 1 0 1 (bitmask)
// ------ - - - -
// = 1001 1 0 0 1 <- This bit was already cleared.
// \_______\