summaryrefslogtreecommitdiff
path: root/vendor/github.com/klauspost/compress/s2/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/klauspost/compress/s2/README.md')
-rw-r--r--vendor/github.com/klauspost/compress/s2/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/klauspost/compress/s2/README.md b/vendor/github.com/klauspost/compress/s2/README.md
index 8284bb081..1d9220cbf 100644
--- a/vendor/github.com/klauspost/compress/s2/README.md
+++ b/vendor/github.com/klauspost/compress/s2/README.md
@@ -79,7 +79,7 @@ This will take ownership of the buffer until the stream is closed.
func EncodeStream(src []byte, dst io.Writer) error {
enc := s2.NewWriter(dst)
// The encoder owns the buffer until Flush or Close is called.
- err := enc.EncodeBuffer(buf)
+ err := enc.EncodeBuffer(src)
if err != nil {
enc.Close()
return err