~sircmpwn/hare-compress

b701012a4cea3dc2a9bf23b916fef264ced39766 — Drew DeVault 1 year, 5 months ago cc26032
zlib::decompress: improve docs

Signed-off-by: Drew DeVault <sir@cmpwn.com>
1 files changed, 2 insertions(+), 1 deletions(-)

M compress/zlib/reader.ha
M compress/zlib/reader.ha => compress/zlib/reader.ha +2 -1
@@ 116,7 116,8 @@ fn close(s: *io::stream) (void | io::error) = {
	io::close(&s.flate)?;
};

// Creates a stream which decompresses zlib (RFC 1950) data.
// Creates a stream which decompresses zlib (RFC 1950) data. Reads the zlib
// header (2 bytes) before returning.
export fn decompress(src: io::handle) (reader | io::error) = {
	let buf: [2]u8 = [0...];
	for (let n = 0z; n < len(buf)) {