]> Cypherpunks repositories - gostls13.git/commit
compress/flate: use seperate const block for exported constants
authorJoe Tsai <joetsai@digital-static.net>
Sun, 29 May 2016 07:47:45 +0000 (00:47 -0700)
committerJoe Tsai <thebrokentoaster@gmail.com>
Tue, 31 May 2016 18:28:44 +0000 (18:28 +0000)
commit7cd6cae6a63f09caa88bbcc394053b40cdeeccd1
treef1c67ca462484a522184b54aad56d06b6f1ddd34
parent4223294eab3dee0f6c03fd57fc24be3dc3e2d53a
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>
src/compress/flate/deflate.go