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.
pubconstReadLinkError = error{
/// In WASI, this error may occur when the file descriptor does/// not hold the required rights to read value of a symbolic link relative to it.AccessDenied,
PermissionDenied,
FileSystem,
SymLinkLoop,
FileNotFound,
SystemResources,
NotLink,
NotDir,
/// Windows-only. This error may occur if the opened reparse point is/// of unsupported type.UnsupportedReparsePointType,
/// On Windows, `\\server` or `\\server\share` was not found.NetworkNotFound,
/// On Windows, antivirus software is enabled by default. It can be/// disabled, but Windows Update sometimes ignores the user's preference/// and re-enables it. When enabled, antivirus software on Windows/// intercepts file system operations and makes them significantly slower/// in addition to possibly failing with this error code.AntivirusInterference,
/// File attempted to be opened is a running executable.FileBusy,
} || PathNameError || Io.Cancelable || Io.UnexpectedError