From f918f6e4e74541a184a15762a8593fb3f1b9614d Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Fri, 25 Mar 2022 10:52:06 -0500 Subject: [DOC] Repair format and links in What's Here sections (#5711) * Repair format and links in What's Here for Comparable and Array * Repair format for What's Here in enum.c --- compar.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'compar.c') diff --git a/compar.c b/compar.c index c82d44c103..6ee4c2c3fa 100644 --- a/compar.c +++ b/compar.c @@ -288,16 +288,22 @@ cmp_clamp(int argc, VALUE *argv, VALUE x) * * \Module \Comparable provides these methods, all of which use method <=>: * - * - #<:: 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 (min..max), returns: + * - {<}[Comparable.html#method-i-3C]: + * Returns whether +self+ is less than the given object. + * - {<=}[Comparable.html#method-i-3C-3D]: + * Returns whether +self+ is less than or equal to the given object. + * - #==: Returns whether +self+ is equal to the given object. + * - {>}[Comparable.html#method-i-3E]: + * Returns whether +self+ is greater than or equal to the given object. + * - {>=}[Comparable.html#method-i-3E-3D]: + * 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 (min..max), returns: + * * - +min+ if (self <=> min) < 0. * - +max+ if (self <=> max) > 0. * - +self+ otherwise. + * */ void -- cgit v1.2.1