Skip to content

Commit 956d8fb

Browse files
committed
Merge remote-tracking branch 'origin/v4' into v4
2 parents c0def81 + 677f6a5 commit 956d8fb

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)