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.
pubconstmsghdr = externstruct {
name: ?*sockaddr,
namelen: socklen_t,
iov: [*]iovec,
/// The kernel and glibc use `usize` for this field; POSIX and musl use `c_int`.iovlen: usize,
control: ?*anyopaque,
/// The kernel and glibc use `usize` for this field; POSIX and musl use `socklen_t`.controllen: usize,
flags: u32,
}