From f9deff9759177931e18400ac216186ea3f13ddcf Mon Sep 17 00:00:00 2001 From: zzak Date: Tue, 14 Oct 2014 19:57:24 +0000 Subject: * 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 --- gc.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'gc.c') 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 -- cgit v1.2.3