aboutsummaryrefslogtreecommitdiff
path: root/compress.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2016-01-19 12:43:23 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2016-01-19 12:43:23 +0200
commit52ddf98cfddee1ec4157728e540b68534f815bea (patch)
tree2e3781bf67808229cab854540e3eebbf67c38cb8 /compress.go
parentFS optimization: do not read file contents on HEAD requests (diff)
downloadfasthttp-52ddf98cfddee1ec4157728e540b68534f815bea.tar.gz
fasthttp-52ddf98cfddee1ec4157728e540b68534f815bea.tar.bz2
fasthttp-52ddf98cfddee1ec4157728e540b68534f815bea.zip
Fixed golint warnings
Diffstat (limited to 'compress.go')
-rw-r--r--compress.go4
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)