summaryrefslogtreecommitdiff
path: root/array.rb
diff options
context:
space:
mode:
Diffstat (limited to 'array.rb')
-rw-r--r--array.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/array.rb b/array.rb
index 5ca1584af3..a43a3b27b1 100644
--- a/array.rb
+++ b/array.rb
@@ -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