Skip to content

Commit e3ad309

Browse files
authored
Fix a pair of mistyped test cases in std::net::ip
1 parent 51e8031 commit e3ad309

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/net/ip/tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ fn test_from_str_ipv4_in_ipv6() {
7777
let none: Option<Ipv4Addr> = "::127.0.0.1:".parse().ok();
7878
assert_eq!(None, none);
7979
// not enough groups
80-
let none: Option<Ipv6Addr> = "1.2.3.4.5:127.0.0.1".parse().ok();
80+
let none: Option<Ipv6Addr> = "1:2:3:4:5:127.0.0.1".parse().ok();
8181
assert_eq!(None, none);
8282
// too many groups
83-
let none: Option<Ipv6Addr> = "1.2.3.4.5:6:7:127.0.0.1".parse().ok();
83+
let none: Option<Ipv6Addr> = "1:2:3:4:5:6:7:127.0.0.1".parse().ok();
8484
assert_eq!(None, none);
8585
}
8686

0 commit comments

Comments
 (0)