[DOC] Correct docs for Comparable

This commit is contained in:
Wai-Wai Ng 2023-04-09 17:09:03 +01:00 committed by GitHub
parent 038f9ade3c
commit 917e7eb50f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2023-04-09 16:09:26 +00:00
Merged: https://github.com/ruby/ruby/pull/7680

Merged-By: nobu <nobu@ruby-lang.org>

View File

@ -289,8 +289,8 @@ cmp_clamp(int argc, VALUE *argv, VALUE x)
* - #<: Returns whether +self+ is less than the given object.
* - #<=: Returns whether +self+ is less than or equal to the given object.
* - #==: Returns whether +self+ is equal to the given object.
* - #>: Returns whether +self+ is greater than or equal to the given object.
* - #>=: Returns whether +self+ is greater than the given object.
* - #>: Returns whether +self+ is greater than the given object.
* - #>=: Returns whether +self+ is greater than or equal to the given object.
* - #between?: Returns +true+ if +self+ is between two given objects.
* - #clamp: For given objects +min+ and +max+, or range <tt>(min..max)</tt>, returns:
*