You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: library/alloc/src/string.rs
+1-3
Original file line number
Diff line number
Diff line change
@@ -1742,9 +1742,7 @@ impl String {
1742
1742
1743
1743
/// Replaces the leftmost occurrence of a pattern with another string, in-place.
1744
1744
///
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.
0 commit comments