summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-18 21:23:15 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-18 21:23:15 +0000
commit30f813ddf2d9f29a10ed9a5e3de3dbb1f2cae4c4 (patch)
tree3d48860c9706a885f4623215d20ad1515b030dd7 /object.c
parent42b8654bf08f7f0fc51d2da2b40c6c80ca77c15c (diff)
* object.c (rb_inspect): fix typo and error message
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/object.c b/object.c
index 44cab14521..bcf021dc95 100644
--- a/object.c
+++ b/object.c
@@ -428,7 +428,7 @@ rb_any_to_s(VALUE obj)
/*
* If the default external encoding is ASCII compatible, the encoding of
* inspected result must be compatible with it.
- * If the default external encoding is ASCII incomapatible,
+ * If the default external encoding is ASCII incompatible,
* the result must be ASCII only.
*/
VALUE
@@ -442,7 +442,7 @@ rb_inspect(VALUE obj)
return str;
}
if (rb_enc_get(str) != ext && !rb_enc_str_asciionly_p(str))
- rb_raise(rb_eEncCompatError, "inspected result must be ASCII only or use the same encoding with default external");
+ rb_raise(rb_eEncCompatError, "inspected result must be ASCII only or use the default external encoding");
return str;
}