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.

setExecutable

Fetch.setExecutable
fn setExecutable(io: Io, file: Io.File) !void

File

lib/compiler/Maker/Fetch.zig:1941

Code

fn setExecutable(io: Io, file: Io.File) !void {
    if (!Io.File.Permissions.has_executable_bit) return;
    try file.setPermissions(io, .executable_file);
}