std::net: fix documentation markdown
This commit is contained in:
@@ -512,7 +512,7 @@ impl Ipv4Addr {
|
|||||||
/// - addresses reserved for future protocols (see
|
/// - addresses reserved for future protocols (see
|
||||||
/// [`is_ietf_protocol_assignment()`](#method.is_ietf_protocol_assignment), except
|
/// [`is_ietf_protocol_assignment()`](#method.is_ietf_protocol_assignment), except
|
||||||
/// `192.0.0.9/32` and `192.0.0.10/32` which are globally routable
|
/// `192.0.0.9/32` and `192.0.0.10/32` which are globally routable
|
||||||
/// - addresses reserved for future use (see [`is_reserved()`](#method.is_reserved())
|
/// - addresses reserved for future use (see [`is_reserved()`](#method.is_reserved)
|
||||||
/// - addresses reserved for networking devices benchmarking (see
|
/// - addresses reserved for networking devices benchmarking (see
|
||||||
/// [`is_benchmarking`](#method.is_benchmarking))
|
/// [`is_benchmarking`](#method.is_benchmarking))
|
||||||
///
|
///
|
||||||
@@ -1237,11 +1237,13 @@ impl Ipv6Addr {
|
|||||||
///
|
///
|
||||||
/// - [IETF RFC 4291 section 2.5.6]
|
/// - [IETF RFC 4291 section 2.5.6]
|
||||||
/// - [RFC 4291 errata 4406]
|
/// - [RFC 4291 errata 4406]
|
||||||
|
/// - [`is_unicast_link_local()`]
|
||||||
///
|
///
|
||||||
|
/// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291
|
||||||
/// [IETF RFC 4291 section 2.5.6]: https://tools.ietf.org/html/rfc4291#section-2.5.6
|
/// [IETF RFC 4291 section 2.5.6]: https://tools.ietf.org/html/rfc4291#section-2.5.6
|
||||||
/// [`true`]: ../../std/primitive.bool.html
|
/// [`true`]: ../../std/primitive.bool.html
|
||||||
/// [RFC 4291 errata 4406]: https://www.rfc-editor.org/errata/eid4406
|
/// [RFC 4291 errata 4406]: https://www.rfc-editor.org/errata/eid4406
|
||||||
/// [`is_unicast_link_local()`](#method.is_unicast_link_local)
|
/// [`is_unicast_link_local()`]: ../../std/net/struct.Ipv6Addr.html#method.is_unicast_link_local
|
||||||
///
|
///
|
||||||
pub fn is_unicast_link_local_strict(&self) -> bool {
|
pub fn is_unicast_link_local_strict(&self) -> bool {
|
||||||
(self.segments()[0] & 0xffff) == 0xfe80
|
(self.segments()[0] & 0xffff) == 0xfe80
|
||||||
@@ -1300,7 +1302,7 @@ impl Ipv6Addr {
|
|||||||
/// [IETF RFC 4291 section 2.4]: https://tools.ietf.org/html/rfc4291#section-2.4
|
/// [IETF RFC 4291 section 2.4]: https://tools.ietf.org/html/rfc4291#section-2.4
|
||||||
/// [`true`]: ../../std/primitive.bool.html
|
/// [`true`]: ../../std/primitive.bool.html
|
||||||
/// [RFC 4291 errata 4406]: https://www.rfc-editor.org/errata/eid4406
|
/// [RFC 4291 errata 4406]: https://www.rfc-editor.org/errata/eid4406
|
||||||
/// [`is_unicast_link_local_strict()`](#method.is_unicast_link_local_strict)
|
/// [`is_unicast_link_local_strict()`]: ../../std/net/struct.Ipv6Addr.html#method.is_unicast_link_local_strict
|
||||||
///
|
///
|
||||||
pub fn is_unicast_link_local(&self) -> bool {
|
pub fn is_unicast_link_local(&self) -> bool {
|
||||||
(self.segments()[0] & 0xffc0) == 0xfe80
|
(self.segments()[0] & 0xffc0) == 0xfe80
|
||||||
|
|||||||
Reference in New Issue
Block a user