diff options
| author | Maik Allgöwer <maik@llgoewer.de> | 2022-03-11 00:16:45 +0100 |
|---|---|---|
| committer | Maik Allgöwer <maik@llgoewer.de> | 2022-03-11 00:29:43 +0100 |
| commit | 229e01d11fc5e6e34488beb5da05702de5eac632 (patch) | |
| tree | 8711b69625b4918b3976e9dd888c3116cd49e534 /library/alloc/src/vec | |
| parent | 5f4e0677190b82e61dc507e3e72caf89da8e5e28 (diff) | |
| download | rust-229e01d11fc5e6e34488beb5da05702de5eac632.tar.gz rust-229e01d11fc5e6e34488beb5da05702de5eac632.zip | |
Improve doc wording for retain on some collections
Diffstat (limited to 'library/alloc/src/vec')
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index c4c393f55ee..b898bd8743f 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -1424,7 +1424,7 @@ impl<T, A: Allocator> Vec<T, A> { /// Retains only the elements specified by the predicate. /// - /// In other words, remove all elements `e` such that `f(&e)` returns `false`. + /// In other words, remove all elements `e` for which `f(&e)` returns `false`. /// This method operates in place, visiting each element exactly once in the /// original order, and preserves the order of the retained elements. /// |
