From 2bcf11e67740d88fb208e0be0ee696e21f8840f8 Mon Sep 17 00:00:00 2001 From: Robert Stefanic Date: Fri, 31 Jul 2026 21:44:52 -0400 Subject: [PATCH] compress/gzip: Fix example code I tried to compile this example and received the following error: ``` Error: Cannot assign value 'os.stdin.stream' of type 'File_Stream' to 'Stream' in a structure literal input = os.stdin.stream, ^~~~~~~~~~~~~~^ ``` The example was fixed by passing the File_Stream to `os.to_stream`. Signed-off-by: Robert Stefanic --- core/compress/gzip/doc.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/compress/gzip/doc.odin b/core/compress/gzip/doc.odin index e4b1929dd..e8185482c 100644 --- a/core/compress/gzip/doc.odin +++ b/core/compress/gzip/doc.odin @@ -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 {