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 Function
For IPv6, RFC 3986 defines this as an "IP literal", and the port is differentiated from the address by surrounding the address part in brackets "[addr]:port". Even if the port is not given, the brackets are mandatory.
Parse an IP address which may include a port.
For IPv4, this is written
address:port.For IPv6, RFC 3986 defines this as an "IP literal", and the port is differentiated from the address by surrounding the address part in brackets "[addr]:port". Even if the port is not given, the brackets are mandatory.