zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit c974e198164e13fea491e3897a04ec82d132fbf6 (tree)
parent 0cca7e732eb7f9ced1ecef6cf463c987df32e8e6
Author: Igor Anić <igor.anic@gmail.com>
Date:   Mon, 11 Mar 2024 13:30:26 +0100

docs: make docs work with recent tar changes

It is no longer need to call skip if file content is not consumed. It is
handled internally now. File types are now same as in os.File.

Diffstat:
Mlib/docs/wasm/main.zig | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/docs/wasm/main.zig b/lib/docs/wasm/main.zig @@ -767,7 +767,7 @@ fn unpack_inner(tar_bytes: []u8) !void { }); while (try it.next()) |tar_file| { switch (tar_file.kind) { - .normal => { + .file => { if (tar_file.size == 0 and tar_file.name.len == 0) break; if (std.mem.endsWith(u8, tar_file.name, ".zig")) { log.debug("found file: '{s}'", .{tar_file.name}); @@ -790,7 +790,6 @@ fn unpack_inner(tar_bytes: []u8) !void { tar_file.name, }); } - try tar_file.skip(); }, else => continue, }