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.
pubconstMOUNT_ATTR = packedstruct(u32) {
/// Update atime relative to mtime/ctime.RELATIME: u0, // This is the default ATIME, it's true unless a different ATIME is set./// Mount read-only.RDONLY: bool, // 0x00000001/// Ignore suid and sgid bits.NOSUID: bool, // 0x00000002/// Disallow access to device special files.NODEV: bool, // 0x00000004/// Disallow program execution.NOEXEC: bool, // 0x00000008/// Do not update access times.NOATIME: bool, // 0x00000010/// Always perform atime updates.STRICTATIME: bool, // 0x00000020_40: bool = false, // 0x00000040/// Do not update directory access times.NODIRATIME: bool, // 0x00000080_100: u12 = 0, // 0x00000100/// Idmap mount to @userns_fd in struct mount_attr.IDMAP: bool, // 0x00100000/// Do not follow symlinks.NOSYMFOLLOW: bool, // 0x00200000_: u10 = 0,
// ATIME: u32, // 0x00000070 This is a mask, not a flag.
}