General

Profile

robyoder (Rob Yoder)

  • Login: robyoder
  • Email: rob@robyoder.com
  • Registered on: 06/28/2014
  • Last sign in: 06/28/2014

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

06/28/2014

02:09 AM Ruby Bug #9989: Docs give wrong information for sort block return values
This occurs under Array.sort and Array.sort! (http://www.ruby-doc.org/core-2.1.2/Array.html#method-i-sort)
Enumerable.sort vaguely states:
> The block should return -1, 0, or +1 depending on the comparison between a and b.
(http...
robyoder (Rob Yoder)
02:05 AM Ruby Bug #9989 (Closed): Docs give wrong information for sort block return values
Under the Array.sort documentation, this statement is made:
> Comparisons for the sort will be done using the <=> operator or using an optional code block.
> ...
This is incorrect. The default sort block is `{ |a,b| a <=> b }`. That...
robyoder (Rob Yoder)

Also available in: Atom