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.
pubconstDeleteFileError = error{
FileNotFound,
/// In WASI, this error may occur when the file descriptor does/// not hold the required rights to unlink a resource by path relative to it.AccessDenied,
PermissionDenied,
FileBusy,
FileSystem,
IsDir,
SymLinkLoop,
NotDir,
SystemResources,
ReadOnlyFileSystem,
/// On Windows, `\\server` or `\\server\share` was not found.NetworkNotFound,
} || PathNameError || Io.Cancelable || Io.UnexpectedError