mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-04-01 05:45:29 +01:00
fixed incorrect bitmask in xor example
This commit is contained in:
parent
f7e8d4c444
commit
2437edd51f
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue