about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2020-08-11 23:57:13 +0800
committerGitHub <noreply@github.com>2020-08-11 23:57:13 +0800
commite4f2de2e9a38f9dfc425ec9da254917c8be9bc6d (patch)
tree06ac2f060e1cbbf3084d481b7af70da08324558b /library/alloc/src
parent4b9ac5161781ca6a376daab3d3b2f2623d8f3789 (diff)
downloadrust-e4f2de2e9a38f9dfc425ec9da254917c8be9bc6d.tar.gz
rust-e4f2de2e9a38f9dfc425ec9da254917c8be9bc6d.zip
Fix range term in alloc vec doc
`range` is not an element, it is a variable.
Diffstat (limited to 'library/alloc/src')
-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.