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

ruby-changes:35837

From: zzak <ko1@a...>
Date: Wed, 15 Oct 2014 04:57:34 +0900 (JST)
Subject: [ruby-changes:35837] zzak:r47919 (trunk): * gc.c (rb_obj_id): [DOC] Fix typo, clean up sentence, and wrap cols

zzak	2014-10-15 04:57:24 +0900 (Wed, 15 Oct 2014)

  New Revision: 47919

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

  Log:
    * gc.c (rb_obj_id): [DOC] Fix typo, clean up sentence, and wrap cols

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47918)
+++ ChangeLog	(revision 47919)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Oct 15 04:56:27 2014  Zachary Scott  <e@z...>
+
+	* gc.c (rb_obj_id): [DOC] Fix typo, clean up sentence, and wrap cols
+
 Wed Oct 15 04:53:30 2014  Zachary Scott  <e@z...>
 
 	* error.c: [DOC] Fix case of type in exception message by @tricknotes
Index: gc.c
===================================================================
--- gc.c	(revision 47918)
+++ gc.c	(revision 47919)
@@ -2716,13 +2716,14 @@ id2ref(VALUE obj, VALUE objid) https://github.com/ruby/ruby/blob/trunk/gc.c#L2716
  *
  *  Returns an integer identifier for +obj+.
  *
- *  The same number will be returned on all calls to +object_id+ for a given object,
- *  and no two active objects will share an id.
+ *  The same number will be returned on all calls to +object_id+ for a given
+ *  object, and no two active objects will share an id.
+ *
+ *  Note: that some objects of builtin classes are reused for optimization.
+ *  This is the case for immediate values and frozen string literals.
  *
- *  Note that some objects of builtin classes are reused for optimization.
- *  This is the case for immediate values and frozen string litterals.
  *  Immediate values are not passed by reference but are passed by value:
- *  +nil+, +true+, +false+, Fixnums, Symbols. Some Floats may be immediates too.
+ *  +nil+, +true+, +false+, Fixnums, Symbols, and some Floats.
  *
  *      Object.new.object_id  == Object.new.object_id  # => false
  *      (21 * 2).object_id    == (21 * 2).object_id    # => true

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

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