diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-14 19:57:24 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-14 19:57:24 +0000 |
commit | f9deff9759177931e18400ac216186ea3f13ddcf (patch) | |
tree | 8f1e276a05d1be89c66609dab34a2ee63bbae65c /gc.c | |
parent | 329b2f472cb4806c90048c5a7c0ccc173da9cf6d (diff) | |
download | ruby-f9deff9759177931e18400ac216186ea3f13ddcf.tar.gz |
* 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.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 |