mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 04:50:29 +00:00
Merge pull request #4468 from Cthuflu/patch-doc-1
Correct zlib usage in doc
This commit is contained in:
@@ -13,6 +13,7 @@ Example:
|
||||
package main
|
||||
|
||||
import "core:bytes"
|
||||
import "core:compress/zlib"
|
||||
import "core:fmt"
|
||||
|
||||
main :: proc() {
|
||||
@@ -36,7 +37,7 @@ Example:
|
||||
buf: bytes.Buffer
|
||||
|
||||
// We can pass ", true" to inflate a raw DEFLATE stream instead of a ZLIB wrapped one.
|
||||
err := inflate(input=ODIN_DEMO, buf=&buf, expected_output_size=OUTPUT_SIZE)
|
||||
err := zlib.inflate(input=ODIN_DEMO, buf=&buf, expected_output_size=OUTPUT_SIZE)
|
||||
defer bytes.buffer_destroy(&buf)
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user