aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
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