From 22b955d9bff9f736af9e81ca5e49bad6608cb987 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 27 Aug 2003 19:43:50 +0000 Subject: * eval.c (rb_eval): *a = [1,2] now assigns [[1,2]] to a. consistent with *a = [1], which set [[1]] to a. * node.h: merge NODE_RESTARY to NODE_SPLAT. * parse.y: rules simplified a bit by removing NODE_RESTARY. * sample/test.rb: updated for new assignment behavior. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4452 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 f5be455c44..248813e233 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_splat(result); + rb_yield(result); rb_backref_set(match); /* restore $~ value */ } rb_backref_set(match); -- cgit v1.2.3