diff options
| author | Ivan Tham <pickfire@riseup.net> | 2020-08-11 23:57:13 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-11 23:57:13 +0800 |
| commit | e4f2de2e9a38f9dfc425ec9da254917c8be9bc6d (patch) | |
| tree | 06ac2f060e1cbbf3084d481b7af70da08324558b /library/alloc/src | |
| parent | 4b9ac5161781ca6a376daab3d3b2f2623d8f3789 (diff) | |
| download | rust-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.rs | 2 |
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. |
