Skip to content

Commit cafab51

Browse files
committed
Remove explicit links to true and false in ip.rs
1 parent e36e4bd commit cafab51

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

library/std/src/net/ip.rs

-42
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ impl IpAddr {
140140
/// See the documentation for [`Ipv4Addr::is_unspecified()`] and
141141
/// [`Ipv6Addr::is_unspecified()`] for more details.
142142
///
143-
/// [`true`]: ../../std/primitive.bool.html
144-
///
145143
/// # Examples
146144
///
147145
/// ```
@@ -163,8 +161,6 @@ impl IpAddr {
163161
/// See the documentation for [`Ipv4Addr::is_loopback()`] and
164162
/// [`Ipv6Addr::is_loopback()`] for more details.
165163
///
166-
/// [`true`]: ../../std/primitive.bool.html
167-
///
168164
/// # Examples
169165
///
170166
/// ```
@@ -186,8 +182,6 @@ impl IpAddr {
186182
/// See the documentation for [`Ipv4Addr::is_global()`] and
187183
/// [`Ipv6Addr::is_global()`] for more details.
188184
///
189-
/// [`true`]: ../../std/primitive.bool.html
190-
///
191185
/// # Examples
192186
///
193187
/// ```
@@ -210,8 +204,6 @@ impl IpAddr {
210204
/// See the documentation for [`Ipv4Addr::is_multicast()`] and
211205
/// [`Ipv6Addr::is_multicast()`] for more details.
212206
///
213-
/// [`true`]: ../../std/primitive.bool.html
214-
///
215207
/// # Examples
216208
///
217209
/// ```
@@ -233,8 +225,6 @@ impl IpAddr {
233225
/// See the documentation for [`Ipv4Addr::is_documentation()`] and
234226
/// [`Ipv6Addr::is_documentation()`] for more details.
235227
///
236-
/// [`true`]: ../../std/primitive.bool.html
237-
///
238228
/// # Examples
239229
///
240230
/// ```
@@ -258,8 +248,6 @@ impl IpAddr {
258248
/// Returns [`true`] if this address is an [`IPv4` address], and [`false`]
259249
/// otherwise.
260250
///
261-
/// [`true`]: ../../std/primitive.bool.html
262-
/// [`false`]: ../../std/primitive.bool.html
263251
/// [`IPv4` address]: IpAddr::V4
264252
///
265253
/// # Examples
@@ -278,8 +266,6 @@ impl IpAddr {
278266
/// Returns [`true`] if this address is an [`IPv6` address], and [`false`]
279267
/// otherwise.
280268
///
281-
/// [`true`]: ../../std/primitive.bool.html
282-
/// [`false`]: ../../std/primitive.bool.html
283269
/// [`IPv6` address]: IpAddr::V6
284270
///
285271
/// # Examples
@@ -376,7 +362,6 @@ impl Ipv4Addr {
376362
/// This property is defined in _UNIX Network Programming, Second Edition_,
377363
/// W. Richard Stevens, p. 891; see also [ip7].
378364
///
379-
/// [`true`]: ../../std/primitive.bool.html
380365
/// [ip7]: http://man7.org/linux/man-pages/man7/ip.7.html
381366
///
382367
/// # Examples
@@ -397,7 +382,6 @@ impl Ipv4Addr {
397382
///
398383
/// This property is defined by [IETF RFC 1122].
399384
///
400-
/// [`true`]: ../../std/primitive.bool.html
401385
/// [IETF RFC 1122]: https://tools.ietf.org/html/rfc1122
402386
///
403387
/// # Examples
@@ -421,7 +405,6 @@ impl Ipv4Addr {
421405
/// - 172.16.0.0/12
422406
/// - 192.168.0.0/16
423407
///
424-
/// [`true`]: ../../std/primitive.bool.html
425408
/// [IETF RFC 1918]: https://tools.ietf.org/html/rfc1918
426409
///
427410
/// # Examples
@@ -451,7 +434,6 @@ impl Ipv4Addr {
451434
///
452435
/// This property is defined by [IETF RFC 3927].
453436
///
454-
/// [`true`]: ../../std/primitive.bool.html
455437
/// [IETF RFC 3927]: https://tools.ietf.org/html/rfc3927
456438
///
457439
/// # Examples
@@ -490,8 +472,6 @@ impl Ipv4Addr {
490472
/// - addresses reserved for networking devices benchmarking (see
491473
/// [`Ipv4Addr::is_benchmarking()`])
492474
///
493-
/// [`true`]: ../../std/primitive.bool.html
494-
/// [`false`]: ../../std/primitive.bool.html
495475
/// [ipv4-sr]: https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
496476
///
497477
/// # Examples
@@ -564,7 +544,6 @@ impl Ipv4Addr {
564544
/// Returns [`true`] if this address is part of the Shared Address Space defined in
565545
/// [IETF RFC 6598] (`100.64.0.0/10`).
566546
///
567-
/// [`true`]: ../../std/primitive.bool.html
568547
/// [IETF RFC 6598]: https://tools.ietf.org/html/rfc6598
569548
///
570549
/// # Examples
@@ -590,7 +569,6 @@ impl Ipv4Addr {
590569
/// - `192.0.0.9/32` is the "Port Control Protocol Anycast" (see [IETF RFC 7723])
591570
/// - `192.0.0.10/32` is used for NAT traversal (see [IETF RFC 8155])
592571
///
593-
/// [`true`]: ../../std/primitive.bool.html
594572
/// [IETF RFC 6890]: https://tools.ietf.org/html/rfc6890
595573
/// [IETF RFC 7600]: https://tools.ietf.org/html/rfc7600
596574
/// [IETF RFC 7723]: https://tools.ietf.org/html/rfc7723
@@ -617,7 +595,6 @@ impl Ipv4Addr {
617595
/// network devices benchmarking. This range is defined in [IETF RFC 2544] as `192.18.0.0`
618596
/// through `198.19.255.255` but [errata 423] corrects it to `198.18.0.0/15`.
619597
///
620-
/// [`true`]: ../../std/primitive.bool.html
621598
/// [IETF RFC 2544]: https://tools.ietf.org/html/rfc2544
622599
/// [errata 423]: https://www.rfc-editor.org/errata/eid423
623600
///
@@ -641,7 +618,6 @@ impl Ipv4Addr {
641618
/// broadcast address `255.255.255.255`, but this implementation explicitly excludes it, since
642619
/// it is obviously not reserved for future use.
643620
///
644-
/// [`true`]: ../../std/primitive.bool.html
645621
/// [IETF RFC 1112]: https://tools.ietf.org/html/rfc1112
646622
///
647623
/// # Warning
@@ -673,7 +649,6 @@ impl Ipv4Addr {
673649
/// Multicast addresses have a most significant octet between 224 and 239,
674650
/// and is defined by [IETF RFC 5771].
675651
///
676-
/// [`true`]: ../../std/primitive.bool.html
677652
/// [IETF RFC 5771]: https://tools.ietf.org/html/rfc5771
678653
///
679654
/// # Examples
@@ -694,7 +669,6 @@ impl Ipv4Addr {
694669
///
695670
/// A broadcast address has all octets set to 255 as defined in [IETF RFC 919].
696671
///
697-
/// [`true`]: ../../std/primitive.bool.html
698672
/// [IETF RFC 919]: https://tools.ietf.org/html/rfc919
699673
///
700674
/// # Examples
@@ -718,7 +692,6 @@ impl Ipv4Addr {
718692
/// - 198.51.100.0/24 (TEST-NET-2)
719693
/// - 203.0.113.0/24 (TEST-NET-3)
720694
///
721-
/// [`true`]: ../../std/primitive.bool.html
722695
/// [IETF RFC 5737]: https://tools.ietf.org/html/rfc5737
723696
///
724697
/// # Examples
@@ -1125,7 +1098,6 @@ impl Ipv6Addr {
11251098
///
11261099
/// This property is defined in [IETF RFC 4291].
11271100
///
1128-
/// [`true`]: ../../std/primitive.bool.html
11291101
/// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291
11301102
///
11311103
/// # Examples
@@ -1146,7 +1118,6 @@ impl Ipv6Addr {
11461118
///
11471119
/// This property is defined in [IETF RFC 4291].
11481120
///
1149-
/// [`true`]: ../../std/primitive.bool.html
11501121
/// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291
11511122
///
11521123
/// # Examples
@@ -1171,9 +1142,6 @@ impl Ipv6Addr {
11711142
/// - link-local and unique local unicast addresses
11721143
/// - interface-, link-, realm-, admin- and site-local multicast addresses
11731144
///
1174-
/// [`true`]: ../../std/primitive.bool.html
1175-
/// [`false`]: ../../std/primitive.bool.html
1176-
///
11771145
/// # Examples
11781146
///
11791147
/// ```
@@ -1200,8 +1168,6 @@ impl Ipv6Addr {
12001168
///
12011169
/// [IETF RFC 4193]: https://tools.ietf.org/html/rfc4193
12021170
///
1203-
/// [`true`]: ../../std/primitive.bool.html
1204-
///
12051171
/// # Examples
12061172
///
12071173
/// ```
@@ -1234,8 +1200,6 @@ impl Ipv6Addr {
12341200
/// addresses such as `fe80:0:0:1::` or `fe81::` as unicast link-local addresses for example.
12351201
/// If you need a less strict validation use [`Ipv6Addr::is_unicast_link_local()`] instead.
12361202
///
1237-
/// [`true`]: ../../std/primitive.bool.html
1238-
///
12391203
/// # Examples
12401204
///
12411205
/// ```
@@ -1294,8 +1258,6 @@ impl Ipv6Addr {
12941258
/// If you need a strict validation fully compliant with the RFC, use
12951259
/// [`Ipv6Addr::is_unicast_link_local_strict()`] instead.
12961260
///
1297-
/// [`true`]: ../../std/primitive.bool.html
1298-
///
12991261
/// # Examples
13001262
///
13011263
/// ```
@@ -1342,7 +1304,6 @@ impl Ipv6Addr {
13421304
/// +----------+-------------------------+----------------------------+
13431305
/// ```
13441306
///
1345-
/// [`true`]: ../../std/primitive.bool.html
13461307
/// [RFC 4291 section 2.5.7]: https://tools.ietf.org/html/rfc4291#section-2.5.7
13471308
///
13481309
/// # Examples
@@ -1376,7 +1337,6 @@ impl Ipv6Addr {
13761337
///
13771338
/// This property is defined in [IETF RFC 3849].
13781339
///
1379-
/// [`true`]: ../../std/primitive.bool.html
13801340
/// [IETF RFC 3849]: https://tools.ietf.org/html/rfc3849
13811341
///
13821342
/// # Examples
@@ -1412,7 +1372,6 @@ impl Ipv6Addr {
14121372
/// Global Unicast).
14131373
/// ```
14141374
///
1415-
/// [`true`]: ../../std/primitive.bool.html
14161375
/// [RFC 4291 section 2.5.7]: https://tools.ietf.org/html/rfc4291#section-2.5.7
14171376
///
14181377
/// # Examples
@@ -1472,7 +1431,6 @@ impl Ipv6Addr {
14721431
///
14731432
/// This property is defined by [IETF RFC 4291].
14741433
///
1475-
/// [`true`]: ../../std/primitive.bool.html
14761434
/// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291
14771435
///
14781436
/// # Examples

0 commit comments

Comments
 (0)