Skip to content

Commit 7bdc38d

Browse files
authored
Succinctify splice docs
1 parent 8b40a18 commit 7bdc38d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/liballoc/vec.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -2018,16 +2018,14 @@ impl<T> Vec<T> {
20182018
/// with the given `replace_with` iterator and yields the removed items.
20192019
/// `replace_with` does not need to be the same length as `range`.
20202020
///
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.
20232022
///
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
20252024
/// if the `Splice` value is leaked.
20262025
///
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.
20292027
///
2030-
/// Note 4: This is optimal if:
2028+
/// This is optimal if:
20312029
///
20322030
/// * The tail (elements in the vector after `range`) is empty,
20332031
/// * or `replace_with` yields fewer elements than `range`’s length

0 commit comments

Comments
 (0)