[前][次][番号順一覧][スレッド一覧]

ruby-changes:29802

From: knu <ko1@a...>
Date: Tue, 9 Jul 2013 16:02:29 +0900 (JST)
Subject: [ruby-changes:29802] knu:r41854 (trunk): * object.c: Fix rdoc for Kernel#<=>. [Fix GH-352]

knu	2013-07-09 16:02:06 +0900 (Tue, 09 Jul 2013)

  New Revision: 41854

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41854

  Log:
    * object.c: Fix rdoc for Kernel#<=>. [Fix GH-352]

  Modified files:
    trunk/ChangeLog
    trunk/object.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41853)
+++ ChangeLog	(revision 41854)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Jul  9 15:57:20 2013  Akinori MUSHA  <knu@i...>
+
+	* object.c: Fix rdoc for Kernel#<=>. [Fix GH-352]
+
 Tue Jul  9 15:53:51 2013  Akinori MUSHA  <knu@i...>
 
 	* lib/fileutils.rb (FileUtils#mode_to_s): Define mode_to_s() also
Index: object.c
===================================================================
--- object.c	(revision 41853)
+++ object.c	(revision 41854)
@@ -1357,7 +1357,7 @@ rb_obj_not_match(VALUE obj1, VALUE obj2) https://github.com/ruby/ruby/blob/trunk/object.c#L1357
  *  call-seq:
  *     obj <=> other -> 0 or nil
  *
- *  Returns 0 if obj === other, otherwise nil.
+ *  Returns 0 if obj.equal?(other) or obj == other, otherwise nil.
  *
  *  The <=> is used by various methods to compare objects, for example
  *  Enumerable#sort, Enumerable#max etc.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]