Skip to content

Commit e26ac8c

Browse files
authored
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
1 parent fbd8f95 commit e26ac8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/net/ip_addr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ impl IpAddr {
293293
///
294294
/// use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
295295
///
296-
/// assert_eq!(IpAddr::V4(Ipv4Addr::new(80, 9, 12, 3)).is_global(), true);
296+
/// assert_eq!(IpAddr::V4(Ipv4Addr::new(192, 0, 2, 3)).is_global(), true);
297297
/// assert_eq!(IpAddr::V6(Ipv6Addr::new(0, 0, 0x1c9, 0, 0, 0xafc8, 0, 0x1)).is_global(), true);
298298
/// ```
299299
#[unstable(feature = "ip", issue = "27709")]

0 commit comments

Comments
 (0)