Skip to content

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

Closed
wants to merge 6 commits into from
Closed

Implement minmax function #11767

wants to merge 6 commits into from

Conversation

pongad
Copy link
Contributor

@pongad pongad commented Jan 24, 2014

See #5268

/// `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.
Copy link
Member

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".

@pongad
Copy link
Contributor Author

pongad commented Jan 24, 2014

Embarrassingly, there are some problems with the PR that I forgot to fix when I migrate the code over. Fixing right now.

@pongad
Copy link
Contributor Author

pongad commented Jan 24, 2014

After a few git problems, I got the problem fixed. Should be ready for review now.

@sanxiyn
Copy link
Member

sanxiyn commented Jan 24, 2014

Could you rebase this without all those merge commits?

@pongad
Copy link
Contributor Author

pongad commented Jan 24, 2014

I have apparently completely messed up my fork. Will fix and send another PR. Sorry for the confusion, I'm a git newbie :(

@pongad pongad closed this Jan 24, 2014
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 16, 2023
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants