Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
flanglet committed Jan 2, 2025
1 parent a24475a commit 03ed9f2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions v2/entropy/RangeCodec.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func NewRangeEncoder(bs kanzi.OutputBitStream, args ...uint) (*RangeEncoder, err
return this, nil
}

// NewRangeEncoder creates a new instance of RangeEncoder with a context
// NewRangeEncoderWithCtx creates a new instance of RangeEncoder with a context
// The given arguments are either empty or containing a chunk size and
// a log range (to specify the precision of the encoding).
// The default chunk size is 65536 bytes.
Expand Down Expand Up @@ -367,9 +367,8 @@ func NewRangeDecoder(bs kanzi.InputBitStream, args ...uint) (*RangeDecoder, erro
return this, nil
}

// NewRangeDecoder creates a new instance of RangeDecoder with a context
// NewRangeDecoderWithCtx creates a new instance of RangeDecoder with a context
// The given arguments are either empty or containing a chunk size.
// EG: call NewRangeDecoder(bs) or NewRangeDecoder(bs, 16384)
// The default chunk size is 65536 bytes.
func NewRangeDecoderWithCtx(bs kanzi.InputBitStream, ctx *map[string]any, args ...uint) (*RangeDecoder, error) {
if bs == nil {
Expand Down

0 comments on commit 03ed9f2

Please sign in to comment.