summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-16 13:23:51 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-16 13:23:51 +0000
commita658ebd5bc1f3826d13e22612b9476fd7b5b306a (patch)
tree652646e818c0e457c838d5eeb6829a84dd47ece7 /object.c
parentbe458259da8b3e2623e426fd3354690e01da7a90 (diff)
* object.c (str_to_id): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index 12985ee481..f291931466 100644
--- a/object.c
+++ b/object.c
@@ -1644,7 +1644,7 @@ str_to_id(str)
rb_raise(rb_eArgError, "empty symbol string");
}
if (RSTRING(str)->len != strlen(RSTRING(str)->ptr)) {
- warn("Symbols should not contain NUL (\\0)");
+ rb_warn("Symbols should not contain NUL (\\0)");
}
return rb_intern(RSTRING(str)->ptr);
}