Skip to content

Commit

Permalink
protocol/bitset.go: Rename Test() to Load()
Browse files Browse the repository at this point in the history
  • Loading branch information
TwistedAsylumMC committed Nov 25, 2024
1 parent 3049fd6 commit 64ce0e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minecraft/protocol/bitset.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ func (b Bitset) Unset(i int) {
b.int.SetBit(b.int, i, 0)
}

// Test checks if a bit at a specific index in the Bitset is set. If the index is higher than the size of the
// Load returns if a bit at a specific index in the Bitset is set. If the index is higher than the size of the
// Bitset, a panic will occur.
func (b Bitset) Test(i int) bool {
func (b Bitset) Load(i int) bool {
if i >= b.size {
panic("index out of bounds")
}
Expand Down

0 comments on commit 64ce0e3

Please sign in to comment.