diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2016-01-19 12:43:23 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2016-01-19 12:43:23 +0200 |
commit | 52ddf98cfddee1ec4157728e540b68534f815bea (patch) | |
tree | 2e3781bf67808229cab854540e3eebbf67c38cb8 /compress.go | |
parent | FS optimization: do not read file contents on HEAD requests (diff) | |
download | fasthttp-52ddf98cfddee1ec4157728e540b68534f815bea.tar.gz fasthttp-52ddf98cfddee1ec4157728e540b68534f815bea.tar.bz2 fasthttp-52ddf98cfddee1ec4157728e540b68534f815bea.zip |
Fixed golint warnings
Diffstat (limited to 'compress.go')
-rw-r--r-- | compress.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compress.go b/compress.go index 1da5132..bf2cf70 100644 --- a/compress.go +++ b/compress.go @@ -123,7 +123,7 @@ func AppendGzipBytesLevel(dst, src []byte, level int) []byte { return w.b } -// WriteGzip writes gzipped p to w using the given compression level +// WriteGzipLevel writes gzipped p to w using the given compression level // and returns the number of compressed bytes written to w. // // Supported compression levels are: @@ -139,7 +139,7 @@ func WriteGzipLevel(w io.Writer, p []byte, level int) (int, error) { return n, err } -// WriteGzipLevel writes gzipped p to w and returns the number of compressed +// WriteGzip writes gzipped p to w and returns the number of compressed // bytes written to w. func WriteGzip(w io.Writer, p []byte) (int, error) { return WriteGzipLevel(w, p, CompressDefaultCompression) |