Skip to content

Commit

Permalink
array.rb: Remove unnecessary phrase from rdoc
Browse files Browse the repository at this point in the history
A fix to 54fb8fb
  • Loading branch information
mame committed Nov 12, 2020
1 parent a02ba60 commit a237617
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def shuffle(random: Random)
# 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
Expand Down

0 comments on commit a237617

Please sign in to comment.