Skip to content

Commit

Permalink
Rollup merge of #118811 - EbbDrop:is-sorted-by-bool, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Use `bool` instead of `PartiolOrd` as return value of the comparison closure in `{slice,Iteraotr}::is_sorted_by`

Changes the function signature of the closure given to `{slice,Iteraotr}::is_sorted_by` to return a `bool` instead of a `PartiolOrd` as suggested by the libs-api team here: rust-lang/rust#53485 (comment).

This means these functions now return true if the closure returns true for all the pairs of values.
  • Loading branch information
Nadrieril committed Jan 21, 2024
2 parents eccb91c + 41bedd9 commit a9a9895
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit a9a9895

Please sign in to comment.