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.
pubconstOptions = struct {
constis_debug = @import("builtin").mode == .debug;
constpage_size_log2 = @max(math.log2_int(usize, std.heap.page_size_max), 8);
stack_trace_frames: usize = if (is_debugandstd.debug.sys_can_stack_trace) 7else0,
check_write_after_free: bool = is_debug,
/// A unique value used to check that allocations created by other/// `SafeAllocator` instances are not passed to this one.canary: u32 = 0x85dff10f,
/// Controls the block size and alignment of allocation buckets.////// Changing this is useful to save memory if the backing allocator offers better granuality,/// or if the backing allocator has a limit on active allocations, however decreasing this/// can harm performance.////// Asserted to be >= 8bucket_size_log2: u5 = @max(page_size_log2, 13),
/// Controls the block size of internal metadata.////// Changing this is useful to save memory if the backing allocator offers better granuality,/// or if the backing allocator has a limit on active allocations, however decreasing this/// can harm performance.////// Asserted to be >= 8block_size_log2: u5 = page_size_log2,
}