@@ -240,8 +240,6 @@ impl str {
240
240
/// While doing so, it attempts to find matches of a pattern. If it finds any, it
241
241
/// replaces them with the replacement string slice.
242
242
///
243
- /// [`String`]: string/struct.String.html
244
- ///
245
243
/// # Examples
246
244
///
247
245
/// Basic usage:
@@ -280,8 +278,6 @@ impl str {
280
278
/// While doing so, it attempts to find matches of a pattern. If it finds any, it
281
279
/// replaces them with the replacement string slice at most `count` times.
282
280
///
283
- /// [`String`]: string/struct.String.html
284
- ///
285
281
/// # Examples
286
282
///
287
283
/// Basic usage:
@@ -324,8 +320,6 @@ impl str {
324
320
/// the case, this function returns a [`String`] instead of modifying the
325
321
/// parameter in-place.
326
322
///
327
- /// [`String`]: string/struct.String.html
328
- ///
329
323
/// # Examples
330
324
///
331
325
/// Basic usage:
@@ -411,8 +405,6 @@ impl str {
411
405
/// the case, this function returns a [`String`] instead of modifying the
412
406
/// parameter in-place.
413
407
///
414
- /// [`String`]: string/struct.String.html
415
- ///
416
408
/// # Examples
417
409
///
418
410
/// Basic usage:
@@ -459,8 +451,7 @@ impl str {
459
451
460
452
/// Converts a [`Box<str>`] into a [`String`] without copying or allocating.
461
453
///
462
- /// [`String`]: string/struct.String.html
463
- /// [`Box<str>`]: boxed/struct.Box.html
454
+ /// [`Box<str>`]: Box
464
455
///
465
456
/// # Examples
466
457
///
@@ -485,8 +476,6 @@ impl str {
485
476
///
486
477
/// This function will panic if the capacity would overflow.
487
478
///
488
- /// [`String`]: string/struct.String.html
489
- ///
490
479
/// # Examples
491
480
///
492
481
/// Basic usage:
@@ -525,7 +514,7 @@ impl str {
525
514
/// assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
526
515
/// ```
527
516
///
528
- /// [`make_ascii_uppercase`]: #method. make_ascii_uppercase
517
+ /// [`make_ascii_uppercase`]: str:: make_ascii_uppercase
529
518
/// [`to_uppercase`]: #method.to_uppercase
530
519
#[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
531
520
#[ inline]
@@ -555,7 +544,7 @@ impl str {
555
544
/// assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
556
545
/// ```
557
546
///
558
- /// [`make_ascii_lowercase`]: #method. make_ascii_lowercase
547
+ /// [`make_ascii_lowercase`]: str:: make_ascii_lowercase
559
548
/// [`to_lowercase`]: #method.to_lowercase
560
549
#[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
561
550
#[ inline]
0 commit comments