Project

General

Profile

Bug #8487 » 0001-Fix-documentation-for-Hash-nil.patch

sos4nt (Stefan Schüßler), 06/04/2013 09:12 PM

View differences:

object.c
* <i>arg</i> is <tt>nil</tt> or <tt>[]</tt>.
*
* Hash([]) #=> {}
* Hash(nil) #=> nil
* Hash(nil) #=> {}
* Hash(key: :value) #=> {:key => :value}
* Hash([1, 2, 3]) #=> TypeError
*/
    (1-1/1)