Skip to content

Commit 5d9a0b0

Browse files
authored
Rollup merge of #75409 - pickfire:patch-4, r=GuillaumeGomez
Fix range term in alloc vec doc `range` is not an element, it is a variable. r? @GuillaumeGomez
2 parents a028c31 + e4f2de2 commit 5d9a0b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2269,7 +2269,7 @@ impl<T> Vec<T> {
22692269
/// with the given `replace_with` iterator and yields the removed items.
22702270
/// `replace_with` does not need to be the same length as `range`.
22712271
///
2272-
/// The element range is removed even if the iterator is not consumed until the end.
2272+
/// `range` is removed even if the iterator is not consumed until the end.
22732273
///
22742274
/// It is unspecified how many elements are removed from the vector
22752275
/// if the `Splice` value is leaked.

0 commit comments

Comments
 (0)