diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2020-08-11 12:28:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-11 12:28:40 -0700 |
| commit | 5d9a0b020c8f85c78b4bb7071e993a9d00db07e7 (patch) | |
| tree | 2400d5f1c2b7830eb3ccb38bb3837ca128159421 | |
| parent | a028c3176a9b8a5fd282ae4cae3cce4c8371d9fa (diff) | |
| parent | e4f2de2e9a38f9dfc425ec9da254917c8be9bc6d (diff) | |
| download | rust-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.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. |
