summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-10 05:39:26 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-10 05:39:26 +0000
commit993e57d175c05a26e016080240e712f3ce2e9fc4 (patch)
tree9ba176498792406f91b5385a3300ae235c8df4d3 /enum.c
parent59c1d04daefaf19283e5ac4a01ace89b9ddebaff (diff)
* enum.c: document that it is OK to take more than available by @mvidner [fix GH-525] [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/enum.c b/enum.c
index 044e48b..3f08808 100644
--- a/enum.c
+++ b/enum.c
@@ -2141,6 +2141,7 @@ take_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, args))
*
* a = [1, 2, 3, 4, 5, 0]
* a.take(3) #=> [1, 2, 3]
+ * a.take(30) #=> [1, 2, 3, 4, 5, 0]
*
*/