Fix range term in alloc vec doc

`range` is not an element, it is a variable.
This commit is contained in:
Ivan Tham
2020-08-11 23:57:13 +08:00
committed by GitHub
parent 4b9ac51617
commit e4f2de2e9a
+1 -1
View File
@@ -2269,7 +2269,7 @@ fn extend_desugared<I: Iterator<Item = T>>(&mut self, mut iterator: I) {
/// with the given `replace_with` iterator and yields the removed items.
/// `replace_with` does not need to be the same length as `range`.
///
/// The element range is removed even if the iterator is not consumed until the end.
/// `range` is removed even if the iterator is not consumed until the end.
///
/// It is unspecified how many elements are removed from the vector
/// if the `Splice` value is leaked.