diff options
author | Yusuke Endoh <[email protected]> | 2020-11-12 16:58:10 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2020-11-12 16:59:59 +0900 |
commit | a237617a5b75b8d541ddbec02363bd99b8adeb49 (patch) | |
tree | 2d8822e282952468b41e6d2fbe473e6960b8ae03 /array.rb | |
parent | a02ba60466500639af80e560fbf2311c6db70d8c (diff) |
array.rb: Remove unnecessary phrase from rdoc
A fix to 54fb8fb62a30c7b60ab6443a62821f6f8bc479c4
Diffstat (limited to 'array.rb')
-rw-r--r-- | array.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -39,8 +39,8 @@ class Array # 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 |