From ce9aba02a65a2a34f9c682635a4ccb5c3077b862 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 22 Aug 2003 08:09:58 +0000 Subject: * enum.c (inject_i): use rb_yield_values. * enum.c (each_with_index_i): ditto. * eval.c (rb_yield_splat): new function to call "yield *values". * string.c (rb_str_scan): use rb_yield_splat(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string.c') diff --git a/string.c b/string.c index 248813e23..f5be455c4 100644 --- a/string.c +++ b/string.c @@ -3066,7 +3066,7 @@ rb_str_scan(str, pat) while (!NIL_P(result = scan_once(str, pat, &start))) { match = rb_backref_get(); rb_match_busy(match); - rb_yield(result); + rb_yield_splat(result); rb_backref_set(match); /* restore $~ value */ } rb_backref_set(match); -- cgit