diff options
| author | mjptree <michael.prantl@hotmail.de> | 2019-11-02 18:30:10 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-02 18:30:10 +0000 |
| commit | 6eddf5cb5eb022c44a6a0541017bbb09b1dd7b73 (patch) | |
| tree | 9111abf13d91690f5fa0923c394d18219083b3e0 /src/libstd/net | |
| parent | f39205b5d9825fcf35989b5a04d115d411175d18 (diff) | |
| download | rust-6eddf5cb5eb022c44a6a0541017bbb09b1dd7b73.tar.gz rust-6eddf5cb5eb022c44a6a0541017bbb09b1dd7b73.zip | |
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.
Diffstat (limited to 'src/libstd/net')
| -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); |
