Skip to content

Commit 8dd1b5e

Browse files
zachs18WilliamVenner
authored andcommitted
Hard-code doclink to avoid issue 98941
1 parent 168c5a0 commit 8dd1b5e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/alloc/src/string.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1987,9 +1987,7 @@ impl String {
19871987

19881988
/// Replaces the leftmost occurrence of a pattern with another string, in-place.
19891989
///
1990-
/// This method should be preferred over [`str::replacen(..., 1)`] as it can use the `String`'s existing capacity to prevent a reallocation if sufficient space is available.
1991-
///
1992-
/// [`str::replacen(..., 1)`]: str::replacen
1990+
/// This method should be preferred over [`str::replacen(..., 1)`](../../std/primitive.str.html#method.replacen) as it can use the `String`'s existing capacity to prevent a reallocation if sufficient space is available.
19931991
///
19941992
/// # Examples
19951993
///

0 commit comments

Comments
 (0)