Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

SearchDir

compile.SearchDir
pub const SearchDir = struct

File

lib/compiler/resinator/compile.zig:2931

Code

pub const SearchDir = struct {
    dir: std.Io.Dir,
    path: ?[]const u8,

    pub fn deinit(self: *SearchDir, allocator: Allocator, io: Io) void {
        self.dir.close(io);
        if (self.path) |path| {
            allocator.free(path);
        }
    }
}