Skip to content

Commit 36a2852

Browse files
authored
doc: Fix zstd documentation (#243)
* zstd: remove reference to non-existent function * zstd: correct names constants in documentation Co-authored-by: greatroar <@>
1 parent dcaf1a6 commit 36a2852

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

zstd/decoder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var (
6666
// A Decoder can be used in two modes:
6767
//
6868
// 1) As a stream, or
69-
// 2) For stateless decoding using DecodeAll or DecodeBuffer.
69+
// 2) For stateless decoding using DecodeAll.
7070
//
7171
// Only a single stream can be decoded concurrently, but the same decoder
7272
// can run multiple concurrent stateless decodes. It is even possible to

zstd/encoder_options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func WithEncoderConcurrency(n int) EOption {
6969
}
7070

7171
// WithWindowSize will set the maximum allowed back-reference distance.
72-
// The value must be a power of two between WindowSizeMin and WindowSizeMax.
72+
// The value must be a power of two between MinWindowSize and MaxWindowSize.
7373
// A larger value will enable better compression but allocate more memory and,
7474
// for above-default values, take considerably longer.
7575
// The default value is determined by the compression level.

0 commit comments

Comments
 (0)