mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (arg_dup_check): vid may be nameless internal id.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d304aa6382
commit
6d32246b31
3 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Nov 6 00:42:05 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* parse.y (arg_dup_check): vid may be nameless internal id.
|
||||
|
||||
Sun Nov 5 19:52:19 2006 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* lib/date.rb: updated based on date2 3.9.7.
|
||||
|
|
1
parse.y
1
parse.y
|
@ -7886,6 +7886,7 @@ arg_dup_check(ID vid, VALUE m, VALUE list, NODE *node)
|
|||
VALUE sym;
|
||||
|
||||
if (!vid) return 0;
|
||||
if (is_junk_id(vid)) return 0;
|
||||
sym = ID2SYM(vid);
|
||||
if ((m && rb_ary_includes(m, sym)) || rb_ary_includes(list, sym)) {
|
||||
ruby_sourceline = nd_line(node);
|
||||
|
|
2
string.c
2
string.c
|
@ -3592,7 +3592,7 @@ rb_str_split(VALUE str, const char *sep0)
|
|||
* str.lines(separator=$/) {|substr| block } => str
|
||||
*
|
||||
* Returns an enumerator that gives each line in the string. If a block is
|
||||
* given, it iterates over eac line in the string.
|
||||
* given, it iterates over each line in the string.
|
||||
*
|
||||
* "foo\nbar\n".lines.to_a #=> ["foo\n", "bar\n"]
|
||||
* "foo\nb ar".lines.sort #=> ["b ar", "foo\n"]
|
||||
|
|
Loading…
Reference in a new issue