Project

General

Profile

Bug #4210

id rather than object_id used in 1.9 rdoc for ObjectSpace

Added by noodl (Vincent Bray) about 9 years ago. Updated almost 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
Backport:
[ruby-core:33907]

Description

=begin
http://ruby-doc.org/ruby-1.9/classes/ObjectSpace.html

s/id/object_id/

Clearly this is a very minor issue. Is there a better place for this kind of docs issues?
=end

History

#1

Updated by naruse (Yui NARUSE) about 9 years ago

=begin
Docs issues are also here.

Anyway the document says "an object id", so it seems correct.
=end

#2

Updated by noodl (Vincent Bray) about 9 years ago

=begin
Sorry I meant the initial comments in the rdoc, like this:

define_finalizer(a, proc {|id| puts "Finalizer one on #{id}" })

Presumably #{id} should be ${object_id}, no?
=end

#3

Updated by mitchellh (Mitchell Hashimoto) about 9 years ago

=begin
The docs look correct to me. #{id} is referencing the parameter passed into the Proc, which can be named anything, but in this case id.

No problem?
=end

#4

Updated by noodl (Vincent Bray) about 9 years ago

=begin
Yes, sorry, I missed that it was a block parameter. Apologies for the noise.

I'm not able to close this issue..
=end

#5

Updated by usa (Usaku NAKAMURA) about 9 years ago

  • Status changed from Open to Rejected

=begin

Yes, sorry, I missed that it was a block parameter. Apologies for the noise.

np :)
=end

Also available in: Atom PDF