Skip to content

Commit e4f2de2

Browse files
authored
Fix range term in alloc vec doc
`range` is not an element, it is a variable.
1 parent 4b9ac51 commit e4f2de2

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)