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-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1742,7 +1742,9 @@ 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 [`String::replacen(..., 1)`](str::replacen) as it can use the `String`'s existing capacity to prevent a reallocation if sufficient space is available.
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.
0 commit comments