diff options
| author | Josh Stone <jistone@redhat.com> | 2021-07-28 16:35:59 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2021-07-28 16:35:59 -0700 |
| commit | d4a60ab34f4f612365e353fafdfb4e28f1484e47 (patch) | |
| tree | 907bb2e0a5b1b25818eb7745f8bd3fbaf998e3da /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | b70888601af92f6cdc0364abab3446e418b91d36 (diff) | |
| download | rust-d4a60ab34f4f612365e353fafdfb4e28f1484e47.tar.gz rust-d4a60ab34f4f612365e353fafdfb4e28f1484e47.zip | |
Update the examples in `String` and `VecDeque::retain`
The examples added in #60396 used a "clever" post-increment hack, unrelated to the actual point of the examples. That hack was found [confusing] in the users forum, and #81811 already changed the `Vec` example to use a more direct iterator. This commit changes `String` and `VecDeque` in the same way for consistency. [confusing]: https://users.rust-lang.org/t/help-understand-strange-expression/62858
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
