diff --git a/codec/helper.go b/codec/helper.go index 2698d8fc..a371191f 100644 --- a/codec/helper.go +++ b/codec/helper.go @@ -859,8 +859,7 @@ type BasicHandle struct { // ExplicitRelease is ignored and has no effect. // - // Deprecated: This is not longer used as pools are only used for long-lived objects - // which are shared across goroutines. + // Deprecated: Pools are only used for long-lived objects shared across goroutines. // It is maintained for backward compatibility. ExplicitRelease bool @@ -2788,7 +2787,7 @@ func freelistCapacity(length int) (capacity int) { // bytesFreelist is a list of byte buffers, sorted by cap. // // In anecdotal testing (running go test -tsd 1..6), we couldn't get -// the length ofthe list > 4 at any time. So we believe a linear search +// the length of the list > 4 at any time. So we believe a linear search // without bounds checking is sufficient. // // Typical usage model: @@ -2806,7 +2805,7 @@ func freelistCapacity(length int) (capacity int) { // v1 := v0 // ... use v1 ... // blist.put(v1) -// if byteSliceAddr(v0) != byteSliceAddr(v1) { +// if !byteSliceSameData(v0, v1) { // blist.put(v0) // } type bytesFreelist [][]byte