mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-24 13:43:04 +00:00
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
This commit is contained in:
commit
5d9a0b020c
@ -2269,7 +2269,7 @@ impl<T> Vec<T> {
|
||||
/// 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.
|
||||
|
Loading…
Reference in New Issue
Block a user