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:
parent
35c3f042fc
commit
65c744fb9c
2 changed files with 7 additions and 2 deletions
|
@ -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().
|
||||
|
|
4
array.c
4
array.c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue