Skip to content

Commit 168c5a0

Browse files
committed
Change doc link
1 parent 6dc294b commit 168c5a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/alloc/src/string.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1987,7 +1987,9 @@ impl String {
19871987

19881988
/// Replaces the leftmost occurrence of a pattern with another string, in-place.
19891989
///
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.
1991+
///
1992+
/// [`str::replacen(..., 1)`]: str::replacen
19911993
///
19921994
/// # Examples
19931995
///

0 commit comments

Comments
 (0)