1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* array.c: clarify docs for take_while/drop_while samples.

[ci skip][fix GH-1028] Patch by @leriksen

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2015-11-20 03:53:25 +00:00
parent 35c3f042fc
commit 65c744fb9c
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Fri Nov 20 12:53:19 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* array.c: clarify docs for take_while/drop_while samples.
[ci skip][fix GH-1028] Patch by @leriksen
Fri Nov 20 12:48:04 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* ext/socket/socket.c: remove mention of :UNIX in getaddrinfo().

View file

@ -5419,7 +5419,7 @@ rb_ary_take(VALUE obj, VALUE n)
/*
* call-seq:
* ary.take_while { |arr| block } -> new_ary
* ary.take_while { |obj| block } -> new_ary
* ary.take_while -> Enumerator
*
* Passes elements to the block until the block returns +nil+ or +false+, then
@ -5478,7 +5478,7 @@ rb_ary_drop(VALUE ary, VALUE n)
/*
* call-seq:
* ary.drop_while { |arr| block } -> new_ary
* ary.drop_while { |obj| block } -> new_ary
* ary.drop_while -> Enumerator
*
* Drops elements up to, but not including, the first element for which the