Skip to content

Commit

Permalink
codec: nit: clean up some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ugorji committed Nov 28, 2023
1 parent 126da48 commit a315d04
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions codec/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit a315d04

Please sign in to comment.