ruby-changes:4460
From: ko1@a...
Date: Thu, 10 Apr 2008 19:34:59 +0900 (JST)
Subject: [ruby-changes:4460] knu - Ruby:r15951 (trunk): Fix mistake in the previous commit.
knu 2008-04-10 19:34:49 +0900 (Thu, 10 Apr 2008)
New Revision: 15951
Modified files:
trunk/array.c
Log:
Fix mistake in the previous commit.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/array.c?r1=15951&r2=15950&diff_format=u
Index: array.c
===================================================================
--- array.c (revision 15950)
+++ array.c (revision 15951)
@@ -505,7 +505,7 @@
* <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 @@
* 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"
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/