Skip to content

Commit

Permalink
Fix Number comparison operator docs (#12880)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdocr authored Jan 4, 2023
1 parent 2354ad5 commit 59b77bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/number.cr
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ struct Number
# Returns:
# - `-1` if `self` is less than *other*
# - `0` if `self` is equal to *other*
# - `-1` if `self` is greater than *other*
# - `1` if `self` is greater than *other*
# - `nil` if `self` is `NaN` or *other* is `NaN`, because `NaN` values are not comparable
def <=>(other) : Int32?
# NaN can't be compared to other numbers
Expand Down

0 comments on commit 59b77bc

Please sign in to comment.