Fix predicate signatures in retain_mut docs
This is my first PR here so let me know if I'm doing anything wrong.
The docs for retain_mut in LinkedList and VecDeque say the predicate takes &e, but it should be &mut e to match the actual signature. Vec has it documented correctly already.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) some time within the next two weeks.
Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:
-
@rustbot author: the review is finished, PR author should check the comments and take action accordingly -
@rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue
Nope, this looks change looks good. You're absolutely correct that this is a mistake, mostly likely from copy-pasting the docs when it was first implemented.
@bors r+ rollup
:pushpin: Commit 3ed5d5590e12d972acf4ca6a503d0b00f233ad0e has been approved by jhpratt
It is now in the queue for this repository.