Skip to content

Commit 6f5fc47

Browse files
Rollup merge of #50013 - frewsxcv:frewsxcv-ssplice, r=GuillaumeGomez
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.
2 parents 7a6fad3 + 01e8beb commit 6f5fc47

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)