@@ -133,8 +133,8 @@ pub enum Ipv6MulticastScope {
133
133
impl IpAddr {
134
134
/// Returns [`true`] for the special 'unspecified' address.
135
135
///
136
- /// See the documentation for [`Ipv4Addr::is_unspecified`] and
137
- /// [`Ipv6Addr::is_unspecified`] for more details.
136
+ /// See the documentation for [`Ipv4Addr::is_unspecified() `] and
137
+ /// [`Ipv6Addr::is_unspecified() `] for more details.
138
138
///
139
139
/// [`true`]: ../../std/primitive.bool.html
140
140
///
@@ -156,8 +156,8 @@ impl IpAddr {
156
156
157
157
/// Returns [`true`] if this is a loopback address.
158
158
///
159
- /// See the documentation for [`Ipv4Addr::is_loopback`] and
160
- /// [`Ipv6Addr::is_loopback`] for more details.
159
+ /// See the documentation for [`Ipv4Addr::is_loopback() `] and
160
+ /// [`Ipv6Addr::is_loopback() `] for more details.
161
161
///
162
162
/// [`true`]: ../../std/primitive.bool.html
163
163
///
@@ -179,8 +179,8 @@ impl IpAddr {
179
179
180
180
/// Returns [`true`] if the address appears to be globally routable.
181
181
///
182
- /// See the documentation for [`Ipv4Addr::is_global`] and
183
- /// [`Ipv6Addr::is_global`] for more details.
182
+ /// See the documentation for [`Ipv4Addr::is_global() `] and
183
+ /// [`Ipv6Addr::is_global() `] for more details.
184
184
///
185
185
/// [`true`]: ../../std/primitive.bool.html
186
186
///
@@ -203,8 +203,8 @@ impl IpAddr {
203
203
204
204
/// Returns [`true`] if this is a multicast address.
205
205
///
206
- /// See the documentation for [`Ipv4Addr::is_multicast`] and
207
- /// [`Ipv6Addr::is_multicast`] for more details.
206
+ /// See the documentation for [`Ipv4Addr::is_multicast() `] and
207
+ /// [`Ipv6Addr::is_multicast() `] for more details.
208
208
///
209
209
/// [`true`]: ../../std/primitive.bool.html
210
210
///
@@ -226,8 +226,8 @@ impl IpAddr {
226
226
227
227
/// Returns [`true`] if this address is in a range designated for documentation.
228
228
///
229
- /// See the documentation for [`Ipv4Addr::is_documentation`] and
230
- /// [`Ipv6Addr::is_documentation`] for more details.
229
+ /// See the documentation for [`Ipv4Addr::is_documentation() `] and
230
+ /// [`Ipv6Addr::is_documentation() `] for more details.
231
231
///
232
232
/// [`true`]: ../../std/primitive.bool.html
233
233
///
@@ -470,23 +470,24 @@ impl Ipv4Addr {
470
470
/// Returns [`true`] if the address appears to be globally routable.
471
471
/// See [iana-ipv4-special-registry][ipv4-sr].
472
472
///
473
- /// The following return false:
473
+ /// The following return [` false`] :
474
474
///
475
- /// - private addresses (see [`Ipv4Addr::is_private`])
476
- /// - the loopback address (see [`Ipv4Addr::is_loopback`])
477
- /// - the link-local address (see [`Ipv4Addr::is_link_local`])
478
- /// - the broadcast address (see [`Ipv4Addr::is_broadcast`])
479
- /// - addresses used for documentation (see [`Ipv4Addr::is_documentation`])
480
- /// - the unspecified address (see [`Ipv4Addr::is_unspecified`]), and the whole
475
+ /// - private addresses (see [`Ipv4Addr::is_private() `])
476
+ /// - the loopback address (see [`Ipv4Addr::is_loopback() `])
477
+ /// - the link-local address (see [`Ipv4Addr::is_link_local() `])
478
+ /// - the broadcast address (see [`Ipv4Addr::is_broadcast() `])
479
+ /// - addresses used for documentation (see [`Ipv4Addr::is_documentation() `])
480
+ /// - the unspecified address (see [`Ipv4Addr::is_unspecified() `]), and the whole
481
481
/// 0.0.0.0/8 block
482
482
/// - addresses reserved for future protocols (see
483
- /// [`Ipv4Addr::is_ietf_protocol_assignment`], except
483
+ /// [`Ipv4Addr::is_ietf_protocol_assignment() `], except
484
484
/// `192.0.0.9/32` and `192.0.0.10/32` which are globally routable
485
- /// - addresses reserved for future use (see [`Ipv4Addr::is_reserved`]
485
+ /// - addresses reserved for future use (see [`Ipv4Addr::is_reserved() `]
486
486
/// - addresses reserved for networking devices benchmarking (see
487
- /// [`Ipv4Addr::is_benchmarking`])
487
+ /// [`Ipv4Addr::is_benchmarking() `])
488
488
///
489
489
/// [`true`]: ../../std/primitive.bool.html
490
+ /// [`false`]: ../../std/primitive.bool.html
490
491
/// [ipv4-sr]: https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
491
492
///
492
493
/// # Examples
@@ -1218,7 +1219,7 @@ impl Ipv6Addr {
1218
1219
///
1219
1220
/// This method validates the format defined in the RFC and won't recognize the following
1220
1221
/// addresses such as `fe80:0:0:1::` or `fe81::` as unicast link-local addresses for example.
1221
- /// If you need a less strict validation use [`Ipv6Addr::is_unicast_link_local`] instead.
1222
+ /// If you need a less strict validation use [`Ipv6Addr::is_unicast_link_local() `] instead.
1222
1223
///
1223
1224
/// [`true`]: ../../std/primitive.bool.html
1224
1225
///
@@ -1249,7 +1250,7 @@ impl Ipv6Addr {
1249
1250
/// - [IETF RFC 4291 section 2.5.6]
1250
1251
/// - [RFC 4291 errata 4406] (which has been rejected but provides useful
1251
1252
/// insight)
1252
- /// - [`Ipv6Addr::is_unicast_link_local`]
1253
+ /// - [`Ipv6Addr::is_unicast_link_local() `]
1253
1254
///
1254
1255
/// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291
1255
1256
/// [IETF RFC 4291 section 2.5.6]: https://tools.ietf.org/html/rfc4291#section-2.5.6
@@ -1275,9 +1276,9 @@ impl Ipv6Addr {
1275
1276
/// ```
1276
1277
///
1277
1278
/// As a result, this method consider addresses such as `fe80:0:0:1::` or `fe81::` to be
1278
- /// unicast link-local addresses, whereas [`Ipv6Addr::is_unicast_link_local_strict`] does not.
1279
+ /// unicast link-local addresses, whereas [`Ipv6Addr::is_unicast_link_local_strict() `] does not.
1279
1280
/// If you need a strict validation fully compliant with the RFC, use
1280
- /// [`Ipv6Addr::is_unicast_link_local_strict`] instead.
1281
+ /// [`Ipv6Addr::is_unicast_link_local_strict() `] instead.
1281
1282
///
1282
1283
/// [`true`]: ../../std/primitive.bool.html
1283
1284
///
0 commit comments