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
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2005,7 +2005,9 @@ impl String {
2005
2005
2006
2006
/// Replaces the leftmost occurrence of a pattern with another string, in-place.
2007
2007
///
2008
-
/// 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.
2008
+
/// This method should be preferred over [`String::replacen(..., 1)`][replacen]
2009
+
/// as it can use the `String`'s existing capacity to prevent a reallocation if
0 commit comments