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

* string.c (Init_String): sym_match arity spec was wrong. a patch

from Hiroyuki Iwatsuki <don at na.rim.or.jp> in [ruby-dev:32957].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-01-07 10:12:45 +00:00
parent 4d6c034752
commit f2707db2dc
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Mon Jan 7 19:11:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (Init_String): sym_match arity spec was wrong. a patch
from Hiroyuki Iwatsuki <don at na.rim.or.jp> in [ruby-dev:32957].
Mon Jan 7 18:10:33 2008 Tanaka Akira <akr@fsij.org>
* string.c (str_gsub): move rb_enc_get(str) to out of loop.

View file

@ -83,7 +83,7 @@ assert_equal 'ok', %q{
end
end
M::A.eval_str(<<END)
M::A.eval_str(<<-END)
workflow_rule do |r|
r.at 1
end

View file

@ -5975,7 +5975,7 @@ Init_String(void)
rb_define_method(rb_cSymbol, "length", sym_length, 0);
rb_define_method(rb_cSymbol, "size", sym_length, 0);
rb_define_method(rb_cSymbol, "empty?", sym_empty, 0);
rb_define_method(rb_cSymbol, "match", sym_match, -1);
rb_define_method(rb_cSymbol, "match", sym_match, 1);
rb_define_method(rb_cSymbol, "upcase", sym_upcase, 0);
rb_define_method(rb_cSymbol, "downcase", sym_downcase, 0);