File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2018,16 +2018,14 @@ impl<T> Vec<T> {
2018
2018
/// with the given `replace_with` iterator and yields the removed items.
2019
2019
/// `replace_with` does not need to be the same length as `range`.
2020
2020
///
2021
- /// Note 1: The element range is removed even if the iterator is not
2022
- /// consumed until the end.
2021
+ /// The element range is removed even if the iterator is not consumed until the end.
2023
2022
///
2024
- /// Note 2: It is unspecified how many elements are removed from the vector,
2023
+ /// It is unspecified how many elements are removed from the vector
2025
2024
/// if the `Splice` value is leaked.
2026
2025
///
2027
- /// Note 3: The input iterator `replace_with` is only consumed
2028
- /// when the `Splice` value is dropped.
2026
+ /// The input iterator `replace_with` is only consumed when the `Splice` value is dropped.
2029
2027
///
2030
- /// Note 4: This is optimal if:
2028
+ /// This is optimal if:
2031
2029
///
2032
2030
/// * The tail (elements in the vector after `range`) is empty,
2033
2031
/// * or `replace_with` yields fewer elements than `range`’s length
You can’t perform that action at this time.
0 commit comments