mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-06-05 23:34:47 +00:00
fixed incorrect bitmask in xor example
This commit is contained in:
parent
f7e8d4c444
commit
2437edd51f
@ -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.
|
||||
// \_______\
|
||||
|
Loading…
x
Reference in New Issue
Block a user