mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c: Fix document. Default value of the first
argument of `String#split` is not `$;` but `nil`. When `nil` is passed as first argument, `$;` is used. [ci skip] [Bug #11729] [ruby-dev:49378] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1abef5bd11
commit
adc0898538
2 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Wed Dec 23 11:58:52 2015 Yuichiro Kaneko <yui-knk@ruby-lang.org>
|
||||||
|
|
||||||
|
* string.c: Fix document. Default value of the first
|
||||||
|
argument of `String#split` is not `$;` but `nil`.
|
||||||
|
When `nil` is passed as first argument, `$;` is used.
|
||||||
|
[ci skip] [Bug #11729] [ruby-dev:49378]
|
||||||
|
|
||||||
Wed Dec 23 07:15:17 2015 Eric Wong <e@80x24.org>
|
Wed Dec 23 07:15:17 2015 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
* ext/socket/init.c (rsock_init_sock): reject reserved FDs
|
* ext/socket/init.c (rsock_init_sock): reject reserved FDs
|
||||||
|
|
6
string.c
6
string.c
|
@ -6701,7 +6701,7 @@ static const char isspacetable[256] = {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* str.split(pattern=$;, [limit]) -> anArray
|
* str.split(pattern=nil, [limit]) -> anArray
|
||||||
*
|
*
|
||||||
* Divides <i>str</i> into substrings based on a delimiter, returning an array
|
* Divides <i>str</i> into substrings based on a delimiter, returning an array
|
||||||
* of these substrings.
|
* of these substrings.
|
||||||
|
@ -6716,8 +6716,8 @@ static const char isspacetable[256] = {
|
||||||
* <i>str</i> is split into individual characters. If <i>pattern</i> contains
|
* <i>str</i> is split into individual characters. If <i>pattern</i> contains
|
||||||
* groups, the respective matches will be returned in the array as well.
|
* groups, the respective matches will be returned in the array as well.
|
||||||
*
|
*
|
||||||
* If <i>pattern</i> is omitted, the value of <code>$;</code> is used. If
|
* If <i>pattern</i> is <code>nil</code>, the value of <code>$;</code> is used.
|
||||||
* <code>$;</code> is <code>nil</code> (which is the default), <i>str</i> is
|
* If <code>$;</code> is <code>nil</code> (which is the default), <i>str</i> is
|
||||||
* split on whitespace as if ` ' were specified.
|
* split on whitespace as if ` ' were specified.
|
||||||
*
|
*
|
||||||
* If the <i>limit</i> parameter is omitted, trailing null fields are
|
* If the <i>limit</i> parameter is omitted, trailing null fields are
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue