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.

inactiveUnionField

simple_panic.inactiveUnionField
pub fn inactiveUnionField(active: anytype, accessed: @TypeOf(active)) noreturn

File

lib/std/debug/simple_panic.zig:44

Code

pub fn inactiveUnionField(active: anytype, accessed: @TypeOf(active)) noreturn {
    _ = accessed;
    call("access of inactive union field", null);
}