From e8b41deead821d254377dcf8233c56e8cc42eeaf Mon Sep 17 00:00:00 2001 From: knu Date: Thu, 10 Apr 2008 10:34:49 +0000 Subject: [PATCH] Fix mistake in the previous commit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- array.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"