summaryrefslogtreecommitdiffhomepage
path: root/pkg/bitmap/bitmap.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/bitmap/bitmap.go')
-rw-r--r--pkg/bitmap/bitmap.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/bitmap/bitmap.go b/pkg/bitmap/bitmap.go
index 803b7b3c7..12d2fc2b8 100644
--- a/pkg/bitmap/bitmap.go
+++ b/pkg/bitmap/bitmap.go
@@ -32,8 +32,8 @@ type Bitmap struct {
bitBlock []uint64
}
-// BitmapWithSize create a new empty Bitmap.
-func BitmapWithSize(size uint32) Bitmap {
+// New create a new empty Bitmap.
+func New(size uint32) Bitmap {
b := Bitmap{}
bSize := (size + 63) / 64
b.bitBlock = make([]uint64, bSize)