diff --git a/array.c b/array.c index 644d5ee922..5852347584 100644 --- a/array.c +++ b/array.c @@ -505,7 +505,7 @@ rb_ary_pop(VALUE ary) * nil if the array is empty. * * If a number _n_ is given, returns an array of the last n elements - * (or less) just like array.slice(-n, n) does. + * (or less) just like array.slice!(-n, n) does. * * a = [ "a", "b", "c", "d" ] * a.pop #=> "d" @@ -561,7 +561,7 @@ rb_ary_shift(VALUE ary) * is empty. * * If a number _n_ is given, returns an array of the first n elements - * (or less) just like array.slice(0, n) does. + * (or less) just like array.slice!(0, n) does. * * args = [ "-m", "-q", "filename" ] * args.shift #=> "-m"