From 58a60b264deecf33a32c52fbe4a6605263ed3250 Mon Sep 17 00:00:00 2001 From: eregon Date: Sat, 28 Dec 2013 13:22:42 +0000 Subject: [PATCH] * object.c (Kernel#<=>) surround Comparable operators with tags. The #== method was hidden in ri/rdoc's output and was highlighting the line instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ object.c | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 63d6275eae..5828b1fb21 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sat Dec 28 22:21:59 2013 Benoit Daloze + + * object.c (Kernel#<=>) surround Comparable operators with tags. + The #== method was hidden in ri/rdoc's output and was highlighting + the line instead. + Sat Dec 28 17:24:00 2013 DV Suresh * benchmark/bm_so_meteor_contest.rb: [DOC] Fix a few typos diff --git a/object.c b/object.c index 466ec75492..e54285d8fc 100644 --- a/object.c +++ b/object.c @@ -1403,16 +1403,16 @@ rb_obj_not_match(VALUE obj1, VALUE obj2) * Returns 0 if +obj+ and +other+ are the same object * or obj == other, otherwise nil. * - * The <=> is used by various methods to compare objects, for example + * The <=> is used by various methods to compare objects, for example * Enumerable#sort, Enumerable#max etc. * - * Your implementation of <=> should return one of the following values: -1, 0, + * Your implementation of <=> should return one of the following values: -1, 0, * 1 or nil. -1 means self is smaller than other. 0 means self is equal to other. * 1 means self is bigger than other. Nil means the two values could not be * compared. * - * When you define <=>, you can include Comparable to gain the methods <=, <, - * ==, >=, > and between?. + * When you define <=>, you can include Comparable to gain the methods + * <=, <, ==, >=, > and between?. */ static VALUE rb_obj_cmp(VALUE obj1, VALUE obj2)