diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2019-11-10 09:27:13 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-10 09:27:13 +0900 |
| commit | 41d335e44960372f91fc25451841882975aca3d3 (patch) | |
| tree | 6de2ca35e6e032df14c3d25b4376cef1bd172f01 | |
| parent | 401d9e1c28fdf9c1899f0d0ca0f8856849563917 (diff) | |
| parent | 6eddf5cb5eb022c44a6a0541017bbb09b1dd7b73 (diff) | |
| download | rust-41d335e44960372f91fc25451841882975aca3d3.tar.gz rust-41d335e44960372f91fc25451841882975aca3d3.zip | |
Rollup merge of #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.
| -rw-r--r-- | src/libstd/net/ip.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/net/ip.rs b/src/libstd/net/ip.rs index 70b68d13485..16176213d1e 100644 --- a/src/libstd/net/ip.rs +++ b/src/libstd/net/ip.rs @@ -536,7 +536,7 @@ impl Ipv4Addr { /// // the broadcast address is not global /// assert_eq!(Ipv4Addr::new(255, 255, 255, 255).is_global(), false); /// - /// // the broadcast address is not global + /// // the address space designated for documentation is not global /// assert_eq!(Ipv4Addr::new(192, 0, 2, 255).is_global(), false); /// assert_eq!(Ipv4Addr::new(198, 51, 100, 65).is_global(), false); /// assert_eq!(Ipv4Addr::new(203, 0, 113, 6).is_global(), false); |
