Project

General

Profile

Bug #5216

added some clarification to Array.new method

Added by johnnymugs (Jonathan Mukai) almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
1.9.2
Backport:
[ruby-core:39053]

Description

Wasn't sure if the call-seq section needed to be updated. Doc was referencing first through fourth forms, but then buried the "final" form kinda deep in some code. Added all four forms, then added return values for all but the most obvious calls.


Files

#1

Updated by drbrain (Eric Hodel) almost 9 years ago

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

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


  • array.c (rb_ary_initialize): Add output for examples. Patch by Jonathan Mukai. [Ruby 1.9 - Bug #5216]

Updated by drbrain (Eric Hodel) almost 9 years ago

The call-seq covers all four examples, so it is fine.

Also available in: Atom PDF