Project

General

Profile

Actions

Backport #8108

closed

Comment in 2.0 doc for creating Arrays is plain wrong (confirmation needed)

Added by steenslag (siep korteling) over 11 years ago. Updated over 11 years ago.


Description

This does not look right (but I do not have 2.0 installed)
Array.new(3, true) #=> [0, 0, 0]

Should be:
Array.new(3, true) #=> [true, true, true]

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0