Skip to content

Commit

Permalink
docs: Fix undefined WithDecoderConcurrency (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden authored May 4, 2023
1 parent ea3eeea commit aa3702a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zstd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ import "github.com/klauspost/compress/zstd"

// Create a reader that caches decompressors.
// For this operation type we supply a nil Reader.
var decoder, _ = zstd.NewReader(nil, WithDecoderConcurrency(0))
var decoder, _ = zstd.NewReader(nil, zstd.WithDecoderConcurrency(0))

// Decompress a buffer. We don't supply a destination buffer,
// so it will be allocated by the decoder.
Expand Down

0 comments on commit aa3702a

Please sign in to comment.