-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Implement minmax function #11767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement minmax function #11767
Conversation
/// `OneElement(x)` is returned if the iterator `minmax` operates on has exactly one element; | ||
/// `x` takes the value of that argument. | ||
/// Otherwise, `MinMax(x, y)` is returned, where x <= y; | ||
/// x == y happens if and only if the vector has more than one elements and all elements are equal. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be "more than one element" not "elements".
Embarrassingly, there are some problems with the PR that I forgot to fix when I migrate the code over. Fixing right now. |
After a few git problems, I got the problem fixed. Should be ready for review now. |
Could you rebase this without all those merge commits? |
I have apparently completely messed up my fork. Will fix and send another PR. Sorry for the confusion, I'm a git newbie :( |
…ons-ext-notes, r=blyxyas Add type details to unnecessary_fallible_conversions note fixes: rust-lang#11753 changelog: [`unnecessary_fallible_conversions`]: add type details to lint note
See #5268