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