Skip to content

Commit d6d48b4

Browse files
committed
Use intra-doc links in alloc::String
1 parent a594603 commit d6d48b4

File tree

3 files changed

+48
-105
lines changed

3 files changed

+48
-105
lines changed

src/liballoc/str.rs

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,6 @@ impl str {
240240
/// While doing so, it attempts to find matches of a pattern. If it finds any, it
241241
/// replaces them with the replacement string slice.
242242
///
243-
/// [`String`]: string/struct.String.html
244-
///
245243
/// # Examples
246244
///
247245
/// Basic usage:
@@ -280,8 +278,6 @@ impl str {
280278
/// While doing so, it attempts to find matches of a pattern. If it finds any, it
281279
/// replaces them with the replacement string slice at most `count` times.
282280
///
283-
/// [`String`]: string/struct.String.html
284-
///
285281
/// # Examples
286282
///
287283
/// Basic usage:
@@ -324,8 +320,6 @@ impl str {
324320
/// the case, this function returns a [`String`] instead of modifying the
325321
/// parameter in-place.
326322
///
327-
/// [`String`]: string/struct.String.html
328-
///
329323
/// # Examples
330324
///
331325
/// Basic usage:
@@ -411,8 +405,6 @@ impl str {
411405
/// the case, this function returns a [`String`] instead of modifying the
412406
/// parameter in-place.
413407
///
414-
/// [`String`]: string/struct.String.html
415-
///
416408
/// # Examples
417409
///
418410
/// Basic usage:
@@ -459,8 +451,7 @@ impl str {
459451

460452
/// Converts a [`Box<str>`] into a [`String`] without copying or allocating.
461453
///
462-
/// [`String`]: string/struct.String.html
463-
/// [`Box<str>`]: boxed/struct.Box.html
454+
/// [`Box<str>`]: Box
464455
///
465456
/// # Examples
466457
///
@@ -485,8 +476,6 @@ impl str {
485476
///
486477
/// This function will panic if the capacity would overflow.
487478
///
488-
/// [`String`]: string/struct.String.html
489-
///
490479
/// # Examples
491480
///
492481
/// Basic usage:
@@ -525,7 +514,7 @@ impl str {
525514
/// assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
526515
/// ```
527516
///
528-
/// [`make_ascii_uppercase`]: #method.make_ascii_uppercase
517+
/// [`make_ascii_uppercase`]: str::make_ascii_uppercase
529518
/// [`to_uppercase`]: #method.to_uppercase
530519
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
531520
#[inline]
@@ -555,7 +544,7 @@ impl str {
555544
/// assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
556545
/// ```
557546
///
558-
/// [`make_ascii_lowercase`]: #method.make_ascii_lowercase
547+
/// [`make_ascii_lowercase`]: str::make_ascii_lowercase
559548
/// [`to_lowercase`]: #method.to_lowercase
560549
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
561550
#[inline]

0 commit comments

Comments
 (0)