Skip to content

Commit 677f6a5

Browse files
authored
Merge pull request #158 from satheshshiva/v4
Updated example:
2 parents a134e63 + 953bb25 commit 677f6a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func Example() {
3535
func ExampleCompressBlock() {
3636
s := "hello world"
3737
data := []byte(strings.Repeat(s, 100))
38-
buf := make([]byte, len(data))
38+
buf := make([]byte, lz4.CompressBlockBound(len(data)))
3939

4040
var c lz4.Compressor
4141
n, err := c.CompressBlock(data, buf)

0 commit comments

Comments
 (0)