pub fn format(a: *const Ip6Address, w: *Io.Writer) Io.Writer.Error!void a: *const Ip6Addressw: *Io.Writer738
739
740
741 pub fn format(a: *const Ip6Address, w: *Io.Writer) Io.Writer.Error!void {
const u: Unresolved = .{ .bytes = a.bytes, .interface_name = null };
try w.print("[{f}]:{d}", .{ u, a.port });
}
See
formatResolvedfor an alternative that additionally prints the optional scope at the end of addresses and requires anIoparameter.