Skip to content

Commit

Permalink
README.md: Fix the usage of the word Len (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegommm authored Oct 28, 2024
1 parent 34fc62d commit db0a554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Example usage of AdaptivePool:
var pool = adaptivepool.New(
adaptivepool.BytesBufferProvider{},
adaptivepool.NormalEstimator{
Threshold: 2, // reuse buffer if its Len is in Mean ± 2 * StdDev
Threshold: 2, // reuse buffer if its Cap is in Mean ± 2 * StdDev
MinCost: 512, // minimum cost of newly created items
},
500, // bias towards the latest 500 elements to increase adaptability
Expand All @@ -42,7 +42,7 @@ Example usage of `ReaderBufferer`:
func bufferAndClose(next http.Handler) http.Handler {
bodiesPool := adaptivepool.NewReaderBufferer(
adaptivepool.NormalEstimator{
Threshold: 2, // reuse buffer if its Len is in Mean ± 2 * StdDev
Threshold: 2, // reuse buffer if its Cap is in Mean ± 2 * StdDev
MinCost: 512, // minimum cost of newly created items
},
500, // bias towards the latest 500 elements to increase adaptability
Expand Down

0 comments on commit db0a554

Please sign in to comment.