* 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:
parent
00e6c80221
commit
2a5ddef59f
@ -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>
|
Thu Dec 15 14:48:35 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ext/strscan/strscan.c: use typed data with
|
* ext/strscan/strscan.c: use typed data with
|
||||||
|
2
error.c
2
error.c
@ -420,7 +420,7 @@ rb_check_type(VALUE x, int t)
|
|||||||
if (type->type == t) {
|
if (type->type == t) {
|
||||||
const char *etype;
|
const char *etype;
|
||||||
|
|
||||||
etype = builtin_type_name(xt);
|
etype = builtin_type_name(x);
|
||||||
rb_raise(rb_eTypeError, "wrong argument type %s (expected %s)",
|
rb_raise(rb_eTypeError, "wrong argument type %s (expected %s)",
|
||||||
etype, type->name);
|
etype, type->name);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user