Skip to content

Commit 434e5fb

Browse files
author
nicholasguoalgorand
authored
fix comments (#2850)
Add an in-code comment.
1 parent 26f29a7 commit 434e5fb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

txnsync/bitmask.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ type bitmask []byte
2828

2929
// assumed to be in mode 0, sets bit at index to 1
3030
func (b *bitmask) setBit(index int) {
31+
// bitmask type is stored at index 0, so the rest of the data is stored after.
3132
byteIndex := index/8 + 1
3233
(*b)[byteIndex] |= 1 << (index % 8)
3334
}

txnsync/bitmask_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"github.com/algorand/go-algorand/test/partitiontest"
2828
)
2929

30-
func TestTrimBitmaskNi(t *testing.T) {
30+
func TestTrimBitmaskNil(t *testing.T) {
3131
partitiontest.PartitionTest(t)
3232

3333
var b bitmask

0 commit comments

Comments
 (0)