-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Description
Zig Version
0.13.0
Steps to Reproduce and Observed Behavior
Running the following:
const std = @import("std");
pub fn main() !void {
const addr = try std.net.Address.parseIp6("2001:db8:0000:0000:0001:0000:0000:0002", 0);
const addr2 = try std.net.Address.parseIp6("2001:db8:0000:0000:0000:0000:0001:0002", 0);
std.debug.print("Parsed address: \n{}\n", .{addr});
std.debug.print("{}", .{addr2});
}
Gives the following output:
Parsed address:
[2001:db8::1:2]:0
[2001:db8::1:2]:0
Expected Behavior
This is the correct compressed form:
Parsed address:
[2001:db8::1:0:0:2]:0
[2001:db8::1:2]:0
heimskr
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.