[ruby-cvs:69733] nobu:r62553 (trunk): Improve Array#sample with random documentation

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Feb 24 10:12:51 JST 2018


nobu	2018-02-24 10:12:51 +0900 (Sat, 24 Feb 2018)

  New Revision: 62553

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62553

  Log:
    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 <alberto.almagro at rakuten.com>

  Modified files:
    trunk/array.c


More information about the ruby-cvs mailing list