ruby-changes:63584
From: Yusuke <ko1@a...>
Date: Thu, 12 Nov 2020 17:00:26 +0900 (JST)
Subject: [ruby-changes:63584] a237617a5b (master): array.rb: Remove unnecessary phrase from rdoc
https://git.ruby-lang.org/ruby.git/commit/?id=a237617a5b From a237617a5b75b8d541ddbec02363bd99b8adeb49 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Thu, 12 Nov 2020 16:58:10 +0900 Subject: array.rb: Remove unnecessary phrase from rdoc A fix to 54fb8fb62a30c7b60ab6443a62821f6f8bc479c4 diff --git a/array.rb b/array.rb index 5ca1584..a43a3b2 100644 --- a/array.rb +++ b/array.rb @@ -39,8 +39,8 @@ class Array https://github.com/ruby/ruby/blob/trunk/array.rb#L39 # a.sample # => 8 # If +self+ is empty, returns +nil+. # - # When argument +n+ is given (but not keyword argument +random+), - # returns a new \Array containing +n+ random elements from +self+: + # When argument +n+ is given, returns a new \Array containing +n+ random + # elements from +self+: # a.sample(3) # => [8, 9, 2] # a.sample(6) # => [9, 6, 10, 3, 1, 4] # Returns no more than <tt>a.size</tt> elements -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/