rust/library/alloc/src/collections/vec_deque
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
..
drain.rs Add unstable attribute for A in Drain and IntoIter 2021-07-23 20:37:12 +02:00
into_iter.rs Add unstable attribute for A in Drain and IntoIter 2021-07-23 20:37:12 +02:00
iter.rs Remove redundant bounds on get_unchecked for vec_deque iterators, and run fmt 2021-07-28 14:33:36 +02:00
iter_mut.rs Remove redundant bounds on get_unchecked for vec_deque iterators, and run fmt 2021-07-28 14:33:36 +02:00
macros.rs Add support for custom allocator in VecDeque 2021-07-23 20:37:09 +02:00
mod.rs Update the examples in String and VecDeque::retain 2021-07-28 16:35:59 -07:00
pair_slices.rs Add support for custom allocator in VecDeque 2021-07-23 20:37:09 +02:00
ring_slices.rs refactor: vec_deque ignore-tidy-filelength 2020-11-13 17:56:39 +00:00
tests.rs Fix overflowing length in Vec<ZST> to VecDeque 2021-03-17 16:02:07 -07:00