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.
This commit is contained in:
parent
4a3ab8b234
commit
01e8bebaf1
1 changed files with 0 additions and 3 deletions
|
@ -1521,9 +1521,6 @@ impl String {
|
||||||
/// and replaces it with the given string.
|
/// and replaces it with the given string.
|
||||||
/// The given string doesn't need to be the same length as the range.
|
/// The given string doesn't need to be the same length as the range.
|
||||||
///
|
///
|
||||||
/// Note: Unlike [`Vec::splice`], the replacement happens eagerly, and this
|
|
||||||
/// method does not return the removed chars.
|
|
||||||
///
|
|
||||||
/// # Panics
|
/// # Panics
|
||||||
///
|
///
|
||||||
/// Panics if the starting point or end point do not lie on a [`char`]
|
/// Panics if the starting point or end point do not lie on a [`char`]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue