summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-27 19:43:50 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-27 19:43:50 +0000
commit80dbf0e030e7ecc67579ced74202fd0808628189 (patch)
tree62a57247ab89ca7f486c74305258edd2db17fd69 /string.c
parent9cbcc9f597c8401599863205bfa7f9f26c7b1b89 (diff)
downloadruby-80dbf0e030e7ecc67579ced74202fd0808628189.tar.gz
ruby-80dbf0e030e7ecc67579ced74202fd0808628189.tar.xz
ruby-80dbf0e030e7ecc67579ced74202fd0808628189.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@4452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index f5be455c4..248813e23 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);