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.
fnremovePoisonedConfiguration(io: Io, scanned_config: *constScannedConfig) void {
if (scanned_config.configuration.poisoned) {
// This configuration file was good for only 1 invocation of the maker
// process. Delete it to save space on disk.
scanned_config.path.root_dir.handle.deleteFile(io, scanned_config.path.sub_path) catch |err|
log.warn("failed deleting poisoned configuration file {f}: {t}", .{ scanned_config.path, err });
}
}