Rollup merge of #118811 - EbbDrop:is-sorted-by-bool, r=Mark-Simulacrum

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: https://github.com/rust-lang/rust/issues/53485#issuecomment-1766411980.

This means these functions now return true if the closure returns true for all the pairs of values.
This commit is contained in:
Nadrieril 2024-01-21 06:38:35 +01:00 committed by GitHub
commit f2c07e2edb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

Diff content is not available