Skip to content

Commit eb1fa3c

Browse files
committed
Change doc link
1 parent 242edde commit eb1fa3c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/alloc/src/string.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1742,7 +1742,9 @@ impl String {
17421742

17431743
/// Replaces the leftmost occurrence of a pattern with another string, in-place.
17441744
///
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.
1746+
///
1747+
/// [`str::replacen(..., 1)`]: str::replacen
17461748
///
17471749
/// # Examples
17481750
///

0 commit comments

Comments
 (0)