Bug #8094

Docs bug for Proc#arity

Added by Jack Nagel about 1 year ago. Updated about 1 year ago.

[ruby-core:53403]
Status:Closed
Priority:Normal
Assignee:Zachary Scott
Category:doc
Target version:-
ruby -v:ruby 2.0.0p0 (2013-02-24 revision 39474) [i386-darwin10.8.0] Backport:

Description

The docs for Proc#arity in proc.c claim that

proc { |x=0, y| }.arity # => 0

the result is really "1".

Associated revisions

Revision 39758
Added by Zachary Scott about 1 year ago

  • proc.c: Typo in Proc.arity found by Jack Nagel [Bug #8094]

History

#1 Updated by Zachary Scott about 1 year ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r39758.
Jack, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • proc.c: Typo in Proc.arity found by Jack Nagel [Bug #8094]

Also available in: Atom PDF