Project

General

Profile

« Previous | Next » 

Revision 62316091

Added by nobu (Nobuyoshi Nakada) over 7 years ago

Improve Array#sample with random documentation

  • array.c (rb_ary_sample): Adds examples for the use of the
    optional parameter random for Array#sample and unifies the style
    with the documentation of Array#shuffle.

[Fix GH-1825]

From: Alberto Almagro

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e