go/src/compress
Joe Tsai 7cd6cae6a6 compress/flate: use seperate const block for exported constants
As rendered on https://tip.golang.org/pkg/compress/flate/, there is an
extra new-line because of the unexported constants in the same block.

<<<
const (
    NoCompression      = 0
    BestSpeed          = 1
    BestCompression    = 9
    DefaultCompression = -1
    HuffmanOnly        = -2 // Disables match search and only does Huffman entropy reduction.

)
>>>

Instead, seperate the exported compression level constants into its own
const block. This is both more readable and also fixes the issue.

Change-Id: I60b7966c83fb53356c02e4640d05f55a3bee35b7
Reviewed-on: https://go-review.googlesource.com/23557
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-05-31 18:28:44 +00:00
..
bzip2 all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
flate compress/flate: use seperate const block for exported constants 2016-05-31 18:28:44 +00:00
gzip compress: update documentation regarding footer verification 2016-05-09 19:19:24 +00:00
lzw compress/lzw: use Run for benchmarks 2016-05-25 17:11:12 +00:00
testdata build: shorten a few packages with long tests 2015-12-29 15:46:44 +00:00
zlib compress: update documentation regarding footer verification 2016-05-09 19:19:24 +00:00