diff options
| author | mitaa <mitaa.ceb@gmail.com> | 2016-03-26 11:59:30 +0100 |
|---|---|---|
| committer | mitaa <mitaa.ceb@gmail.com> | 2016-03-27 00:21:00 +0100 |
| commit | 6a76872d7165f901e3ec127a25be1a6303d137b3 (patch) | |
| tree | 244dcfc32d2d4feebe65b30fdfbb8bd883b07d96 /src/libstd/net | |
| parent | d0f74b605942849b647b0e262fbda1969bd73c2a (diff) | |
| download | rust-6a76872d7165f901e3ec127a25be1a6303d137b3.tar.gz rust-6a76872d7165f901e3ec127a25be1a6303d137b3.zip | |
Extend linkchecker with anchor checking
This adds checks to ensure that: * link anchors refer to existing id's on the target page * id's are unique within an html document * page redirects are valid
Diffstat (limited to 'src/libstd/net')
| -rw-r--r-- | src/libstd/net/tcp.rs | 10 | ||||
| -rw-r--r-- | src/libstd/net/udp.rs | 16 |
2 files changed, 13 insertions, 13 deletions
diff --git a/src/libstd/net/tcp.rs b/src/libstd/net/tcp.rs index 414696413f4..38da74b8903 100644 --- a/src/libstd/net/tcp.rs +++ b/src/libstd/net/tcp.rs @@ -196,7 +196,7 @@ impl TcpStream { /// /// For more information about this option, see [`set_nodelay`][link]. /// - /// [link]: #tymethod.set_nodelay + /// [link]: #method.set_nodelay #[stable(feature = "net2_mutators", since = "1.9.0")] pub fn nodelay(&self) -> io::Result<bool> { self.0.nodelay() @@ -215,7 +215,7 @@ impl TcpStream { /// /// For more information about this option, see [`set_ttl`][link]. /// - /// [link]: #tymethod.set_ttl + /// [link]: #method.set_ttl #[stable(feature = "net2_mutators", since = "1.9.0")] pub fn ttl(&self) -> io::Result<u32> { self.0.ttl() @@ -238,7 +238,7 @@ impl TcpStream { /// /// For more information about this option, see [`set_only_v6`][link]. /// - /// [link]: #tymethod.set_only_v6 + /// [link]: #method.set_only_v6 #[stable(feature = "net2_mutators", since = "1.9.0")] pub fn only_v6(&self) -> io::Result<bool> { self.0.only_v6() @@ -374,7 +374,7 @@ impl TcpListener { /// /// For more information about this option, see [`set_ttl`][link]. /// - /// [link]: #tymethod.set_ttl + /// [link]: #method.set_ttl #[stable(feature = "net2_mutators", since = "1.9.0")] pub fn ttl(&self) -> io::Result<u32> { self.0.ttl() @@ -397,7 +397,7 @@ impl TcpListener { /// /// For more information about this option, see [`set_only_v6`][link]. /// - /// [link]: #tymethod.set_only_v6 + /// [link]: #method.set_only_v6 #[stable(feature = "net2_mutators", since = "1.9.0")] pub fn only_v6(&self) -> io::Result<bool> { self.0.only_v6() diff --git a/src/libstd/net/udp.rs b/src/libstd/net/udp.rs index da1cf115e8d..0be9f13e817 100644 --- a/src/libstd/net/udp.rs +++ b/src/libstd/net/udp.rs @@ -155,7 +155,7 @@ impl UdpSocket { /// For more information about this option, see /// [`set_broadcast`][link]. /// - /// [link]: #tymethod.set_broadcast + /// [link]: #method.set_broadcast #[stable(feature = "net2_mutators", since = "1.9.0")] pub fn broadcast(&self) -> io::Result<bool> { self.0.broadcast() @@ -175,7 +175,7 @@ impl UdpSocket { /// For more information about this option, see /// [`set_multicast_loop_v4`][link]. /// - /// [link]: #tymethod.set_multicast_loop_v4 + /// [link]: #method.set_multicast_loop_v4 #[stable(feature = "net2_mutators", since = "1.9.0")] pub fn multicast_loop_v4(&self) -> io::Result<bool> { self.0.multicast_loop_v4() @@ -198,7 +198,7 @@ impl UdpSocket { /// For more information about this option, see /// [`set_multicast_ttl_v4`][link]. /// - /// [link]: #tymethod.set_multicast_ttl_v4 + /// [link]: #method.set_multicast_ttl_v4 #[stable(feature = "net2_mutators", since = "1.9.0")] pub fn multicast_ttl_v4(&self) -> io::Result<u32> { self.0.multicast_ttl_v4() @@ -218,7 +218,7 @@ impl UdpSocket { /// For more information about this option, see /// [`set_multicast_loop_v6`][link]. /// - /// [link]: #tymethod.set_multicast_loop_v6 + /// [link]: #method.set_multicast_loop_v6 #[stable(feature = "net2_mutators", since = "1.9.0")] pub fn multicast_loop_v6(&self) -> io::Result<bool> { self.0.multicast_loop_v6() @@ -237,7 +237,7 @@ impl UdpSocket { /// /// For more information about this option, see [`set_ttl`][link]. /// - /// [link]: #tymethod.set_ttl + /// [link]: #method.set_ttl #[stable(feature = "net2_mutators", since = "1.9.0")] pub fn ttl(&self) -> io::Result<u32> { self.0.ttl() @@ -260,7 +260,7 @@ impl UdpSocket { /// /// For more information about this option, see [`set_only_v6`][link]. /// - /// [link]: #tymethod.set_only_v6 + /// [link]: #method.set_only_v6 #[stable(feature = "net2_mutators", since = "1.9.0")] pub fn only_v6(&self) -> io::Result<bool> { self.0.only_v6() @@ -293,7 +293,7 @@ impl UdpSocket { /// For more information about this option, see /// [`join_multicast_v4`][link]. /// - /// [link]: #tymethod.join_multicast_v4 + /// [link]: #method.join_multicast_v4 #[stable(feature = "net2_mutators", since = "1.9.0")] pub fn leave_multicast_v4(&self, multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> io::Result<()> { self.0.leave_multicast_v4(multiaddr, interface) @@ -304,7 +304,7 @@ impl UdpSocket { /// For more information about this option, see /// [`join_multicast_v6`][link]. /// - /// [link]: #tymethod.join_multicast_v6 + /// [link]: #method.join_multicast_v6 #[stable(feature = "net2_mutators", since = "1.9.0")] pub fn leave_multicast_v6(&self, multiaddr: &Ipv6Addr, interface: u32) -> io::Result<()> { self.0.leave_multicast_v6(multiaddr, interface) |
