summaryrefslogtreecommitdiff
path: root/compar.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-02-11 10:30:28 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-02-12 12:38:36 +0900
commit50c972a1ae1b15b292f45e78ff3227644f3cabda (patch)
tree294a94a2e5ba8326a3a313293e319458a7010e28 /compar.c
parente6b537e605381b6f1c9518adbeb6813c5e579df7 (diff)
downloadruby-50c972a1ae1b15b292f45e78ff3227644f3cabda.tar.gz
[DOC] Simplify operator method references
Diffstat (limited to 'compar.c')
-rw-r--r--compar.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/compar.c b/compar.c
index e9d1ac41f9..c82d44c103 100644
--- a/compar.c
+++ b/compar.c
@@ -288,13 +288,11 @@ cmp_clamp(int argc, VALUE *argv, VALUE x)
*
* \Module \Comparable provides these methods, all of which use method <tt><=></tt>:
*
- * - {<}[#method-i-3C]:: Returns whether +self+ is less than the given object.
- * - {<=}[#method-i-3C-3D]:: Returns whether +self+ is less than or equal to
- * the given object.
- * - {==}[#method-i-3D-3D]:: Returns whether +self+ is equal to the given object.
- * - {>}[#method-i-3E]:: Returns whether +self+ is greater than or equal to
- * the given object.
- * - {>=}[#method-i-3E-3D]:: Returns whether +self+ is greater than the given object.
+ * - #<:: 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.
* - #between? Returns +true+ if +self+ is between two given objects.
* - #clamp:: For given objects +min+ and +max+, or range <tt>(min..max)</tt>, returns:
* - +min+ if <tt>(self <=> min) < 0</tt>.