tFix comment for GzipEncode - tordam - A library for peer discovery inside the Tor network HTML git clone https://git.parazyd.org/tordam DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 4c1eb2d904aadccdc11d021d403437090f33ebd8 DIR parent 7a90ac48a57eafee638e1c2b720487bc188ccdb5 HTML Author: parazyd <parazyd@dyne.org> Date: Thu, 21 Dec 2017 13:31:42 +0100 Fix comment for GzipEncode Diffstat: M pkg/damlib/helpers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/pkg/damlib/helpers.go b/pkg/damlib/helpers.go t@@ -28,8 +28,8 @@ func StringInSlice(str string, slice []string) bool { return false } -// GzipEncode compresses a given string using gzip, and returns it as a base64 -// encoded string. Returns error upon failure. +// GzipEncode compresses a given slice of bytes using gzip, and returns it as +// a base64 encoded string. Returns error upon failure. func GzipEncode(data []byte) (string, error) { var b bytes.Buffer gz := gzip.NewWriter(&b)