Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enum_take: document that it is OK to take more than available #525

Closed
wants to merge 1 commit into from

Conversation

mvidner
Copy link

@mvidner mvidner commented Feb 5, 2014

No description provided.

@@ -2141,6 +2141,7 @@ enum_zip(int argc, VALUE *argv, VALUE obj)
*
* a = [1, 2, 3, 4, 5, 0]
* a.take(3) #=> [1, 2, 3]
* a.take(30) #=> [1, 2, 3]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2.1.0p0 :001 > a = [1, 2, 3, 4, 5, 0]
 => [1, 2, 3, 4, 5, 0]
2.1.0p0 :002 > a.take(3)
 => [1, 2, 3]
2.1.0p0 :003 > a.take(30)
 => [1, 2, 3, 4, 5, 0]

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DUH, sorry for the noise, will fix.

@zzak
Copy link
Member

zzak commented Feb 8, 2014

@Strech Could you rebase this? Something messed up on our svn+git sync.

@zzak
Copy link
Member

zzak commented Feb 8, 2014

@mvidner I mean..

@mvidner
Copy link
Author

mvidner commented Feb 8, 2014

Sure; rebased, with [ci skip].

@hsbt hsbt closed this in 993e57d Feb 10, 2014
mmasaki pushed a commit to mmasaki/ruby that referenced this pull request Feb 10, 2014
 [fix rubyGH-525] [ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mrkn pushed a commit to mrkn/ruby that referenced this pull request Feb 15, 2014
 [fix rubyGH-525] [ci skip]

git-svn-id: svn+ssh://svn.ruby-lang.org/ruby/trunk@44901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
funky-bibimbap pushed a commit to funky-bibimbap/ruby that referenced this pull request Mar 2, 2014
 [fix rubyGH-525] [ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants