Project

General

Profile

Actions

Bug #8094

closed

Docs bug for Proc#arity

Bug #8094: Docs bug for Proc#arity

Added by Anonymous over 12 years ago. Updated over 12 years ago.

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

Description

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

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

the result is really "1".

Actions

Also available in: PDF Atom