rust/library/core
Matthias Krüger c1e54cfa40
Rollup merge of #129003 - Voultapher:improve-ord-docs, r=workingjubilee
Improve Ord docs

- Makes wording more clear and re-structures some sections that can be overwhelming for someone not already in the know.
- Adds examples of how *not* to implement Ord, inspired by various anti-patterns found in real world code.

Many of the wording changes are inspired directly by my personal experience of being confused by the `Ord` docs and seeing other people get it wrong as well, especially lately having looked at a number of `Ord` implementations as part of #128899.

Created with help by `@orlp.`

r​? `@workingjubilee`
2024-09-29 20:17:36 +02:00
..
benches Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
src Rollup merge of #129003 - Voultapher:improve-ord-docs, r=workingjubilee 2024-09-29 20:17:36 +02:00
tests Rollup merge of #130313 - c410-f3r:unlock-rfc-2011, r=thomcc 2024-09-26 22:20:53 -07:00
Cargo.toml Port std library to RTEMS 2024-09-03 09:19:29 +02:00