Skip to content

Commit

Permalink
use nil instead
Browse files Browse the repository at this point in the history
  • Loading branch information
xgfone committed Apr 13, 2023
1 parent 1f146b9 commit 069a87e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pool_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var (

LenBytesPool = NewCapPool(
func(cap int) []byte { return make([]byte, cap) },
func(bs []byte) []byte { return bs },
nil, // Use the original byte slice, which is equal to func(bs []byte) []byte { return bs }
)
)

Expand Down

0 comments on commit 069a87e

Please sign in to comment.