Skip to content

Commit

Permalink
Fix spacing for binary expression example
Browse files Browse the repository at this point in the history
  • Loading branch information
danielway-wk committed May 17, 2023
1 parent 64dafb7 commit e309fb3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bitarray/bitarray.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ func getSetBitsInBlocks(
}

// Example of this expression:
// block 01001100
// ^block 10110011
// (^block) + 1 10110100
// block & (^block) + 1 00000100
// block ^ mask 01001000
// block 01001100
// ^block 10110011
// (^block) + 1 10110100
// block & (^block) + 1 00000100
// block ^ mask 01001000
mask := block & ((^block) + 1)
block = block ^ mask
}
Expand Down

0 comments on commit e309fb3

Please sign in to comment.