Skip to content

Commit 85d91c6

Browse files
zachs18WilliamVenner
authored andcommitted
Hard-code doclink to avoid issue 98941
1 parent eb1fa3c commit 85d91c6

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
@@ -1742,9 +1742,7 @@ impl String {
17421742

17431743
/// Replaces the leftmost occurrence of a pattern with another string, in-place.
17441744
///
1745-
/// 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.
1746-
///
1747-
/// [`str::replacen(..., 1)`]: str::replacen
1745+
/// 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.
17481746
///
17491747
/// # Examples
17501748
///

0 commit comments

Comments
 (0)