summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-13 04:47:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-13 04:47:10 +0000
commitf41c0a54e2434e5982722195bf0297ed217c94db (patch)
treec8f0ecf064331922adb355af151568cf68dc328f /parse.y
parent9019911a2f1f356ea5c40d0d39c23ac5ceb4d363 (diff)
* parse.y (rb_id2str): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index 91d0bac21b..513ae4004c 100644
--- a/parse.y
+++ b/parse.y
@@ -8529,7 +8529,6 @@ rb_intern_str(VALUE str)
VALUE
rb_id2str(ID id)
{
- const char *name;
st_data_t data;
if (id < tLAST_TOKEN) {
@@ -8560,7 +8559,7 @@ rb_id2str(ID id)
id2 = (id & ~ID_SCOPE_MASK) | ID_CONST;
}
str = rb_str_dup(str);
- rb_str_cat(buf, "=", 1);
+ rb_str_cat(str, "=", 1);
rb_intern_str(str);
if (st_lookup(global_symbols.id_str, id, &data))
return (VALUE)data;