diff options
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -576,9 +576,10 @@ rb_ary_pop(ary) * Removes the last element from <i>self</i> and returns it, or * <code>nil</code> if the array is empty. * - * a = [ "a", "m", "z" ] - * a.pop #=> "z" - * a #=> ["a", "m"] + * a = [ "a", "b", "c", "d" ] + * a.pop #=> "d" + * a.pop(2) #=> ["b", "c"] + * a #=> ["a"] */ static VALUE |