From e26ac8c18a94315a4732e66143c43a7b19008cc0 Mon Sep 17 00:00:00 2001 From: Dylan Myers <131212515+taksyon@users.noreply.github.com> Date: Sun, 7 Sep 2025 06:52:47 -0400 Subject: [PATCH] Use address reserved for docs in comment Addresses starting with "192.0.2.", "198.51.100.", or "203.0.113." are reserved for use in documentation and sample configurations. The original was some random french IP --- library/core/src/net/ip_addr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/net/ip_addr.rs b/library/core/src/net/ip_addr.rs index 9779fb8fe4d5e..c8a25c8b2991e 100644 --- a/library/core/src/net/ip_addr.rs +++ b/library/core/src/net/ip_addr.rs @@ -293,7 +293,7 @@ impl IpAddr { /// /// use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; /// - /// assert_eq!(IpAddr::V4(Ipv4Addr::new(80, 9, 12, 3)).is_global(), true); + /// assert_eq!(IpAddr::V4(Ipv4Addr::new(192, 0, 2, 3)).is_global(), true); /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0, 0, 0x1c9, 0, 0, 0xafc8, 0, 0x1)).is_global(), true); /// ``` #[unstable(feature = "ip", issue = "27709")]