Skip to content

libcore: Ensure min and max functions are consistent for equal inputs#23878

Merged
bors merged 1 commit into
rust-lang:masterfrom
Ryman:stable_extremes
Apr 1, 2015
Merged

libcore: Ensure min and max functions are consistent for equal inputs#23878
bors merged 1 commit into
rust-lang:masterfrom
Ryman:stable_extremes

Conversation

@Ryman

@Ryman Ryman commented Mar 31, 2015

Copy link
Copy Markdown
Contributor

min-like functions now return the leftmost element/input for equal elements.
max-like return the rightmost.

Closes #23687.

cc @HeroesGrave, @aturon, @alexcrichton

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton

Copy link
Copy Markdown
Member

@bors: r+ 2a89d69

Thanks!

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Mar 31, 2015
`min`-like functions now return the leftmost element/input for equal elements.
`max`-like return the rightmost.

Closes rust-lang#23687.

cc @HeroesGrave, @aturon, @alexcrichton
@bors bors merged commit 2a89d69 into rust-lang:master Apr 1, 2015
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.

cmp: min/max is inconsistent with partial_min/max on certain edge cases

5 participants