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
+3-1
Original file line number
Diff line number
Diff line change
@@ -1987,7 +1987,9 @@ impl String {
1987
1987
1988
1988
/// Replaces the leftmost occurrence of a pattern with another string, in-place.
1989
1989
///
1990
-
/// This method should be preferred over [`String::replacen(..., 1)`](str::replacen) as it can use the `String`'s existing capacity to prevent a reallocation if sufficient space is available.
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.
0 commit comments