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.
constCompletion = struct {
result: i32,
flags: u32,
constUserdata = enum(usize) {
unused,
wakeup,
futex_wake,
close,
cleanup,
exit,
/// If bit 0 is 1, a pointer to the `context` field of `Io.Batch.Storage.Pending`./// If bits 0 and 1 are 0, a `*Fiber`._,
};
fnerrno(completion: Completion) linux.E {
returnlinux.errno(@bitCast(@as(isize, completion.result)));
}
}