Skip to content

Commit 8106320

Browse files
committed
std::net: fix documentation markdown
1 parent 9f6a747 commit 8106320

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/libstd/net/ip.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ impl Ipv4Addr {
512512
/// - addresses reserved for future protocols (see
513513
/// [`is_ietf_protocol_assignment()`](#method.is_ietf_protocol_assignment), except
514514
/// `192.0.0.9/32` and `192.0.0.10/32` which are globally routable
515-
/// - addresses reserved for future use (see [`is_reserved()`](#method.is_reserved())
515+
/// - addresses reserved for future use (see [`is_reserved()`](#method.is_reserved)
516516
/// - addresses reserved for networking devices benchmarking (see
517517
/// [`is_benchmarking`](#method.is_benchmarking))
518518
///
@@ -1237,11 +1237,13 @@ impl Ipv6Addr {
12371237
///
12381238
/// - [IETF RFC 4291 section 2.5.6]
12391239
/// - [RFC 4291 errata 4406]
1240+
/// - [`is_unicast_link_local()`]
12401241
///
1242+
/// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291
12411243
/// [IETF RFC 4291 section 2.5.6]: https://tools.ietf.org/html/rfc4291#section-2.5.6
12421244
/// [`true`]: ../../std/primitive.bool.html
12431245
/// [RFC 4291 errata 4406]: https://www.rfc-editor.org/errata/eid4406
1244-
/// [`is_unicast_link_local()`](#method.is_unicast_link_local)
1246+
/// [`is_unicast_link_local()`]: ../../std/net/struct.Ipv6Addr.html#method.is_unicast_link_local
12451247
///
12461248
pub fn is_unicast_link_local_strict(&self) -> bool {
12471249
(self.segments()[0] & 0xffff) == 0xfe80
@@ -1300,7 +1302,7 @@ impl Ipv6Addr {
13001302
/// [IETF RFC 4291 section 2.4]: https://tools.ietf.org/html/rfc4291#section-2.4
13011303
/// [`true`]: ../../std/primitive.bool.html
13021304
/// [RFC 4291 errata 4406]: https://www.rfc-editor.org/errata/eid4406
1303-
/// [`is_unicast_link_local_strict()`](#method.is_unicast_link_local_strict)
1305+
/// [`is_unicast_link_local_strict()`]: ../../std/net/struct.Ipv6Addr.html#method.is_unicast_link_local_strict
13041306
///
13051307
pub fn is_unicast_link_local(&self) -> bool {
13061308
(self.segments()[0] & 0xffc0) == 0xfe80

0 commit comments

Comments
 (0)