From e4f2de2e9a38f9dfc425ec9da254917c8be9bc6d Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Tue, 11 Aug 2020 23:57:13 +0800 Subject: [PATCH] Fix range term in alloc vec doc `range` is not an element, it is a variable. --- library/alloc/src/vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs index 786d1b6ba82f2..de707a71a8c9e 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -2269,7 +2269,7 @@ impl Vec { /// 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.