Fix predicate signatures in retain_mut docs
This commit is contained in:
parent
798fb83f7d
commit
3ed5d5590e
2 changed files with 2 additions and 2 deletions
|
@ -1082,7 +1082,7 @@ impl<T, A: Allocator> LinkedList<T, A> {
|
|||
|
||||
/// Retains only the elements specified by the predicate.
|
||||
///
|
||||
/// In other words, remove all elements `e` for which `f(&e)` returns false.
|
||||
/// In other words, remove all elements `e` for which `f(&mut 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.
|
||||
///
|
||||
|
|
|
@ -2122,7 +2122,7 @@ impl<T, A: Allocator> VecDeque<T, A> {
|
|||
|
||||
/// Retains only the elements specified by the predicate.
|
||||
///
|
||||
/// In other words, remove all elements `e` for which `f(&e)` returns false.
|
||||
/// In other words, remove all elements `e` for which `f(&mut 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
Reference in a new issue