From a658ebd5bc1f3826d13e22612b9476fd7b5b306a Mon Sep 17 00:00:00 2001 From: ocean Date: Wed, 16 Mar 2005 13:23:51 +0000 Subject: * 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 --- ChangeLog | 4 ++++ object.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 498bd8c9b6..6b2485b0c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Mar 16 22:20:25 2005 Hirokazu Yamamoto + + * object.c (str_to_id): fixed typo. + Wed Mar 16 18:08:32 2005 Yukihiro Matsumoto * eval.c (rb_call0): reorganize "return" event post. 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); } -- cgit v1.2.3