about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2020-08-11 12:28:40 -0700
committerGitHub <noreply@github.com>2020-08-11 12:28:40 -0700
commit5d9a0b020c8f85c78b4bb7071e993a9d00db07e7 (patch)
tree2400d5f1c2b7830eb3ccb38bb3837ca128159421
parenta028c3176a9b8a5fd282ae4cae3cce4c8371d9fa (diff)
parente4f2de2e9a38f9dfc425ec9da254917c8be9bc6d (diff)
downloadrust-5d9a0b020c8f85c78b4bb7071e993a9d00db07e7.tar.gz
rust-5d9a0b020c8f85c78b4bb7071e993a9d00db07e7.zip
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
-rw-r--r--library/alloc/src/vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs
index 786d1b6ba82..de707a71a8c 100644
--- a/library/alloc/src/vec.rs
+++ b/library/alloc/src/vec.rs
@@ -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.