about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2019-11-14 14:16:27 +0900
committerGitHub <noreply@github.com>2019-11-14 14:16:27 +0900
commitd145d1e72c184177f40447c63b2813dcef729860 (patch)
tree1ed303d6fad82ceb41eaf7e3e939a104dd18bae2
parent8bd84653af8aedacff38bb55f3d8cfd3ffe8d883 (diff)
parentc154297e6d6314a27d371ffe556e54cee44ceceb (diff)
downloadrust-d145d1e72c184177f40447c63b2813dcef729860.tar.gz
rust-d145d1e72c184177f40447c63b2813dcef729860.zip
Rollup merge of #66372 - ogham:patch-2, r=jonas-schievink
Fix broken links in Ipv4Addr::is_benchmarking docs

[The documentation for `Ipv4Addr::is_benchmarking`](https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_benchmarking) is correct — it has the right RFC number — but the Markdown links are broken. Looks like a copy-and-paste error and a typo.

This PR fixes the links to make them clickable.
-rw-r--r--src/libstd/net/ip.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/net/ip.rs b/src/libstd/net/ip.rs
index 21f674af8cf..e51a9b62449 100644
--- a/src/libstd/net/ip.rs
+++ b/src/libstd/net/ip.rs
@@ -633,8 +633,8 @@ impl Ipv4Addr {
     /// network devices benchmarking. This range is defined in [IETF RFC 2544] as `192.18.0.0`
     /// through `198.19.255.255` but [errata 423] corrects it to `198.18.0.0/15`.
     ///
-    /// [IETF RFC 1112]: https://tools.ietf.org/html/rfc1112
-    /// [errate 423]: https://www.rfc-editor.org/errata/eid423
+    /// [IETF RFC 2544]: https://tools.ietf.org/html/rfc2544
+    /// [errata 423]: https://www.rfc-editor.org/errata/eid423
     /// [`true`]: ../../std/primitive.bool.html
     ///
     /// # Examples