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 standard library. Private Function
fndrain(w: *Writer, data: []const []constu8, splat: usize) Writer.Error!usize {
errdeferw.* = .failing;
// There may have not been enough space in the buffer and the write was sent directly here.// However, it is required that all data goes through the buffer to keep a history.constdata_n = w.buffer.len - w.end;
_ = w.fixedDrain(data, splat) catch {};
assert(w.end == w.buffer.len);
tryrebaseInner(w, 0, 1, false, false);
returndata_n;
}