Improve doc wording for retain on some collections
This commit is contained in:
parent
5f4e067719
commit
229e01d11f
7 changed files with 8 additions and 8 deletions
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue