1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

array.rb: Remove unnecessary phrase from rdoc

A fix to 54fb8fb62a
This commit is contained in:
Yusuke Endoh 2020-11-12 16:58:10 +09:00
parent a02ba60466
commit a237617a5b

View file

@ -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