Skip to content

Commit

Permalink
Merge pull request #158 from satheshshiva/v4
Browse files Browse the repository at this point in the history
Updated example:
  • Loading branch information
pierrec committed Jan 13, 2022
2 parents a134e63 + 953bb25 commit 677f6a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example_test.go
Expand Up @@ -35,7 +35,7 @@ func Example() {
func ExampleCompressBlock() {
s := "hello world"
data := []byte(strings.Repeat(s, 100))
buf := make([]byte, len(data))
buf := make([]byte, lz4.CompressBlockBound(len(data)))

var c lz4.Compressor
n, err := c.CompressBlock(data, buf)
Expand Down

0 comments on commit 677f6a5

Please sign in to comment.