mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix mistake in the previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c04ad1d7e4
commit
e8b41deead
1 changed files with 2 additions and 2 deletions
4
array.c
4
array.c
|
@ -505,7 +505,7 @@ rb_ary_pop(VALUE ary)
|
|||
* <code>nil</code> if the array is empty.
|
||||
*
|
||||
* If a number _n_ is given, returns an array of the last n elements
|
||||
* (or less) just like <code>array.slice(-n, n)</code> does.
|
||||
* (or less) just like <code>array.slice!(-n, n)</code> 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 <code>array.slice(0, n)</code> does.
|
||||
* (or less) just like <code>array.slice!(0, n)</code> does.
|
||||
*
|
||||
* args = [ "-m", "-q", "filename" ]
|
||||
* args.shift #=> "-m"
|
||||
|
|
Loading…
Reference in a new issue