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 standard library. Public Enum
return the numeric calendar value for the given month i.e. jan=1, feb=2, etc
File
time/epoch.zig:67
6768697071727374757677787980818283848586
pubconstMonth = enum(u4) {
jan = 1,
feb,
mar,
apr,
may,
jun,
jul,
aug,
sep,
oct,
nov,
dec,
/// return the numeric calendar value for the given month/// i.e. jan=1, feb=2, etcpubfnnumeric(self: Month) u4 {
return@backingInt(self);
}
}