From 84af1e6bd3555d6aea4928444155c08e3f27050a Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Sun, 22 Nov 2015 16:44:47 -0500 Subject: [PATCH] Update to gobook@1488e6aab9641aecf93189bb7f4283d9086fc01c --- ch13/bzip/bzip2.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ch13/bzip/bzip2.go b/ch13/bzip/bzip2.go index a3bdcf6..0aed4b0 100644 --- a/ch13/bzip/bzip2.go +++ b/ch13/bzip/bzip2.go @@ -34,6 +34,8 @@ func NewWriter(out io.Writer) io.WriteCloser { verbosity = 0 workFactor = 30 ) + // NOTE: This code may not work in future Go releases. + // See http://www.gopl.io/errata.html for explanation. w := &writer{w: out, stream: new(C.bz_stream)} C.BZ2_bzCompressInit(w.stream, blockSize, verbosity, workFactor) return w