Skip to content

Commit

Permalink
⚙️ refactor: Change the writing style
Browse files Browse the repository at this point in the history
  • Loading branch information
sohaha committed Dec 2, 2024
1 parent 692df43 commit 638a155
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions zarray/string.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build go1.18
// +build go1.18

package zarray

import (
Expand Down
2 changes: 1 addition & 1 deletion zutil/buffpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func NewBufferPool(left, right uint) *BufferPool {
for i := begin; i <= end; i *= 2 {
capacity := i
p.shards[i] = &sync.Pool{
New: func() any { return bytes.NewBuffer(make([]byte, 0, capacity)) },
New: func() interface{} { return bytes.NewBuffer(make([]byte, 0, capacity)) },
}
}
return p
Expand Down

0 comments on commit 638a155

Please sign in to comment.