mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
daf4f34fe3
Reverse condition in Vec::retain_mut doctest I find that the doctest for `Vec::retain_mut` is easier to read and understand when the `if` block corresponds to the path that returns `true` and the `else` block returns `false`. Having the `if` block be the `false` path led me to stare at the example for somewhat longer than I probably had to.