rust/library/alloc
Yuki Okushi 3bc6c28376
Rollup merge of #87574 - cuviper:retain-examples, r=joshtriplett
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
2021-07-30 16:26:57 +09:00
..
benches Fix may not to appropriate might not or must not 2021-07-29 01:15:20 -04:00
src Rollup merge of #87574 - cuviper:retain-examples, r=joshtriplett 2021-07-30 16:26:57 +09:00
tests Fix may not to appropriate might not or must not 2021-07-29 01:15:20 -04:00
Cargo.toml Add support for const operands and options to global_asm! 2021-05-13 22:31:57 +01:00