Skip to content

Commit 2647ce2

Browse files
authored
Rollup merge of #92288 - yescallop:patch-1, r=m-ou-se
Fix a pair of mistyped test cases in `std::net::ip` These two test cases are not consistent with their comments, which I believe is unintended.
2 parents 50d5e38 + e3ad309 commit 2647ce2

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)