diff --git a/bytebuffer.go b/bytebuffer.go index 07a055a..f40de39 100644 --- a/bytebuffer.go +++ b/bytebuffer.go @@ -10,7 +10,6 @@ import "io" // // Use Get for obtaining an empty byte buffer. type ByteBuffer struct { - // B is a byte buffer to use in append-like workloads. // See example code for details. B []byte diff --git a/pool.go b/pool.go index 8bb4134..6cccfa0 100644 --- a/pool.go +++ b/pool.go @@ -23,13 +23,12 @@ const ( // Properly determined byte buffer types with their own pools may help reducing // memory waste. type Pool struct { + pool sync.Pool calls [steps]uint64 calibrating uint64 defaultSize uint64 maxSize uint64 - - pool sync.Pool } var defaultPool Pool