Skip to content

Commit

Permalink
Fix Order.max and Oder.min description comments (#2842)
Browse files Browse the repository at this point in the history
Changed description to better fit their implentation
  • Loading branch information
orvi authored and rossabaker committed May 25, 2019
1 parent d550879 commit 83727af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/src/main/scala/cats/kernel/Order.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ trait Order[@sp A] extends Any with PartialOrder[A] { self =>
def partialCompare(x: A, y: A): Double = compare(x, y).toDouble

/**
* If x <= y, return x, else return y.
* If x < y, return x, else return y.
*/
def min(x: A, y: A): A = if (lt(x, y)) x else y

/**
* If x >= y, return x, else return y.
* If x > y, return x, else return y.
*/
def max(x: A, y: A): A = if (gt(x, y)) x else y

Expand Down

0 comments on commit 83727af

Please sign in to comment.