summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-15 08:40:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-15 08:40:29 +0000
commit2a5ddef59feb5b79e097e8b9de1b1f2b3b37b887 (patch)
tree91c2101fe0b844a6c298e259fb58ed8e5d44b9b3
parent00e6c80221738880477638fb3cae02ca63e4f5f3 (diff)
* error.c (rb_check_type): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--error.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b4e606fd1d..13e76d663f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/error.c b/error.c
index 4a4565e7b1..e3348dc7b5 100644
--- a/error.c
+++ b/error.c
@@ -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);
}