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

* string.c (rb_str_upto): should return enumerator if called

without block.  [ruby-dev:37526]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-12-22 02:12:37 +00:00
parent 1d4c164581
commit f77f9da445
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Mon Dec 22 10:59:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_upto): should return enumerator if called
without block. [ruby-dev:37526]
Mon Dec 22 09:54:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (gettable_gen): the encoding of __FILE__ should be

View file

@ -2861,6 +2861,7 @@ rb_str_upto(int argc, VALUE *argv, VALUE beg)
rb_encoding *enc;
rb_scan_args(argc, argv, "11", &end, &exclusive);
RETURN_ENUMERATOR(beg, argc, argv);
excl = RTEST(exclusive);
CONST_ID(succ, "succ");
StringValue(end);