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.

nextArgOrFatal

configurer.nextArgOrFatal
fn nextArgOrFatal(args: []const [:0]const u8, idx: *usize) [:0]const u8

File

lib/compiler/configurer.zig:152

Code

fn nextArgOrFatal(args: []const [:0]const u8, idx: *usize) [:0]const u8 {
    return nextArg(args, idx) orelse {
        fatalWithHint("expected argument after {q}", .{args[idx.* - 1]});
    };
}