Merge pull request #7178 from rstefanic/fix/gzip-example-doc

compress/gzip: Fix example code
This commit is contained in:
Jeroen van Rijn
2026-08-01 11:21:48 +02:00
committed by GitHub

View File

@@ -53,7 +53,7 @@ Example:
if file == "-" {
// Read from stdin
ctx := &compress.Context_Stream_Input{
input = os.stdin.stream,
input = os.to_stream(os.stdin),
}
err = gzip.load(ctx, &buf)
} else {