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.
fnunreserveNode(p: *Parse, node_index: usize) void {
if (p.nodes.len == node_index) {
p.nodes.resize(p.gpa, p.nodes.len - 1) catchunreachable;
} else {
// There is zombie node left in the tree, let's make it as inoffensive as possible
// (sadly there's no no-op node)
p.nodes.items(.tag)[node_index] = .unreachable_literal;
p.nodes.items(.main_token)[node_index] = p.tok_i;
}
}