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

ruby-changes:29723

From: charliesome <ko1@a...>
Date: Thu, 4 Jul 2013 22:31:26 +0900 (JST)
Subject: [ruby-changes:29723] charliesome:r41775 (trunk): * object.c (rb_obj_equal): Fixed an rb_obj_equal documentation typo

charliesome	2013-07-04 22:31:11 +0900 (Thu, 04 Jul 2013)

  New Revision: 41775

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

  Log:
    * object.c (rb_obj_equal): Fixed an rb_obj_equal documentation typo
      where "a" was used instead of "obj".
      Fixes GH-349. Patch by @adnandoric

  Modified files:
    trunk/ChangeLog
    trunk/object.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41774)
+++ ChangeLog	(revision 41775)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jul  4 22:31:00 2013  Charlie Somerville  <charliesome@r...>
+
+	* object.c (rb_obj_equal): Fixed an rb_obj_equal documentation typo
+	  where "a" was used instead of "obj".
+	  Fixes GH-349. Patch by @adnandoric
+
 Thu Jul  4 20:39:20 2013  Tanaka Akira  <akr@f...>
 
 	* tool/make-snapshot: Exit with EXIT_FAILURE when it fails.
Index: object.c
===================================================================
--- object.c	(revision 41774)
+++ object.c	(revision 41775)
@@ -121,9 +121,9 @@ rb_eql(VALUE obj1, VALUE obj2) https://github.com/ruby/ruby/blob/trunk/object.c#L121
  *    obj = "a"
  *    other = obj.dup
  *
- *    a == other      #=> true
- *    a.equal? other  #=> false
- *    a.equal? a      #=> true
+ *    obj == other      #=> true
+ *    obj.equal? other  #=> false
+ *    obj.equal? obj    #=> true
  *
  *  The <code>eql?</code> method returns <code>true</code> if +obj+ and
  *  +other+ refer to the same hash key.  This is used by Hash to test members

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

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