* error.c (rb_check_type): fix typo.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-12-15 08:40:29 +00:00
parent 00e6c80221
commit 2a5ddef59f
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Thu Dec 15 17:40:28 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* error.c (rb_check_type): fix typo.
Thu Dec 15 14:48:35 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/strscan/strscan.c: use typed data with

View File

@ -420,7 +420,7 @@ rb_check_type(VALUE x, int t)
if (type->type == t) {
const char *etype;
etype = builtin_type_name(xt);
etype = builtin_type_name(x);
rb_raise(rb_eTypeError, "wrong argument type %s (expected %s)",
etype, type->name);
}