Skip to content

Commit 01e8beb

Browse files
committed
Remove no longer necessary comparison to Vec::splice.
`String::replace_range` was previously called `String::splice`, so this note was necessary to differentiate it from the `Vec` method. Now that it's renamed, this note no longer seems necessary.
1 parent 4a3ab8b commit 01e8beb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/liballoc/string.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1521,9 +1521,6 @@ impl String {
15211521
/// and replaces it with the given string.
15221522
/// The given string doesn't need to be the same length as the range.
15231523
///
1524-
/// Note: Unlike [`Vec::splice`], the replacement happens eagerly, and this
1525-
/// method does not return the removed chars.
1526-
///
15271524
/// # Panics
15281525
///
15291526
/// Panics if the starting point or end point do not lie on a [`char`]

0 commit comments

Comments
 (0)