Skip to content

Commit

Permalink
💨 bitset: use clear builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
database64128 committed Mar 15, 2024
1 parent aca742a commit 143a773
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bitset/bitset.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ func (s *BitSet) SetAll() {

// UnsetAll sets all bits to 0.
func (s *BitSet) UnsetAll() {
for i := range s.blocks {
s.blocks[i] = 0
}
clear(s.blocks)
}

// FlipAll flips all bits.
Expand Down

0 comments on commit 143a773

Please sign in to comment.