diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-19 10:45:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-19 10:45:54 +0100 |
| commit | 690d6b0958cdc7c06f23d57deedd21010810af96 (patch) | |
| tree | 35505ac6229db53265669b948820e63c71188ea5 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 4dbe966fdd9822ff643a04b30b66f295f3f38fe2 (diff) | |
| parent | 574bc67736114d47f6ed38bc273dff9f9dd38473 (diff) | |
| download | rust-690d6b0958cdc7c06f23d57deedd21010810af96.tar.gz rust-690d6b0958cdc7c06f23d57deedd21010810af96.zip | |
Rollup merge of #92071 - ajtribick:patch-1, r=the8472
Update example code for Vec::splice to change the length The current example for `Vec::splice` illustrates the replacement of a section of length 2 with a new section of length 2. This isn't a particularly interesting case for splice, and makes it look a bit like a shorthand for the kind of manipulations that could be done with a mutable slice. In order to provide a stronger example, this updates the example to use different lengths for the source and destination regions, and uses a slice from the middle of the vector to illustrate that this does not necessarily have to be at the beginning or the end. Resolves #92067
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
