Skip to content

Commit

Permalink
Hard-code doclink to avoid issue 98941
Browse files Browse the repository at this point in the history
  • Loading branch information
zachs18 authored and WilliamVenner committed Sep 19, 2024
1 parent eb1fa3c commit 85d91c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/alloc/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1742,9 +1742,7 @@ impl String {

/// Replaces the leftmost occurrence of a pattern with another string, in-place.
///
/// 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.
///
/// [`str::replacen(..., 1)`]: str::replacen
/// 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.
///
/// # Examples
///
Expand Down

0 comments on commit 85d91c6

Please sign in to comment.