Skip to content

Commit 41d335e

Browse files
authored
Rollup merge of rust-lang#66048 - mjptree:patch-1, r=Dylan-DPC
Correct error in documentation for Ipv4Addr method Correct statement in doctests on line 539 of `is_global` method of the `Ipv4Addr` object, which falsely attributed the tests to the broadcast address.
2 parents 401d9e1 + 6eddf5c commit 41d335e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/libstd/net/ip.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ impl Ipv4Addr {
536536
/// // the broadcast address is not global
537537
/// assert_eq!(Ipv4Addr::new(255, 255, 255, 255).is_global(), false);
538538
///
539-
/// // the broadcast address is not global
539+
/// // the address space designated for documentation is not global
540540
/// assert_eq!(Ipv4Addr::new(192, 0, 2, 255).is_global(), false);
541541
/// assert_eq!(Ipv4Addr::new(198, 51, 100, 65).is_global(), false);
542542
/// assert_eq!(Ipv4Addr::new(203, 0, 113, 6).is_global(), false);

0 commit comments

Comments
 (0)