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.
pubfnaddNamedLazyPath(b: *Build, name: []constu8, lp: LazyPath) void {
constgraph = b.graph;
constgop = b.named_lazy_paths.getOrPutValue(
graph.arena,
graph.dupeString(name),
lp.dupe(graph),
) catch@panic("OOM");
if (gop.found_existing) {
panic("A LazyPath with the name {q} has already been added to the package.", .{name});
}
}