summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-14 19:57:24 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-14 19:57:24 +0000
commitf9deff9759177931e18400ac216186ea3f13ddcf (patch)
tree8f1e276a05d1be89c66609dab34a2ee63bbae65c /gc.c
parent329b2f472cb4806c90048c5a7c0ccc173da9cf6d (diff)
* gc.c (rb_obj_id): [DOC] Fix typo, clean up sentence, and wrap cols
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gc.c b/gc.c
index 51d17614d9..d53c9dc79b 100644
--- a/gc.c
+++ b/gc.c
@@ -2716,13 +2716,14 @@ id2ref(VALUE obj, VALUE objid)
*
* 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