diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-04-17 18:43:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-17 18:43:16 +0200 |
| commit | 6f5fc47ccc47319151203fbfde4b2692863c44a0 (patch) | |
| tree | e296b99af0c7ec5e5c2021f7a8fa2350f07818f0 /src/liballoc/string.rs | |
| parent | 7a6fad32af2fe280005dadd8c74266af3a676ace (diff) | |
| parent | 01e8bebaf1964331a5704b5ee65adc216a923f0e (diff) | |
| download | rust-6f5fc47ccc47319151203fbfde4b2692863c44a0.tar.gz rust-6f5fc47ccc47319151203fbfde4b2692863c44a0.zip | |
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.
Diffstat (limited to 'src/liballoc/string.rs')
| -rw-r--r-- | src/liballoc/string.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index 11fb82c09d3..2f84d5f7f86 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -1521,9 +1521,6 @@ impl String { /// and replaces it with the given string. /// 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 if the starting point or end point do not lie on a [`char`] |
