1
Fork 0

Remove qualification of std::cmp::Ordering in Ord doc

This commit is contained in:
Michael Sloan 2024-12-31 14:29:03 -07:00
parent aea4e43703
commit cdd55bfda2

View file

@ -796,7 +796,7 @@ impl<T: Clone> Clone for Reverse<T> {
/// }
///
/// impl Ord for Character {
/// fn cmp(&self, other: &Self) -> std::cmp::Ordering {
/// fn cmp(&self, other: &Self) -> Ordering {
/// self.experience
/// .cmp(&other.experience)
/// .then(self.health.cmp(&other.health))