summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-01 01:20:56 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-01 01:20:56 +0000
commited22b0ecee668cbd58d469c05b10e74cd6f604ab (patch)
tree496270e7eac9d33121e47a86b280a92deff920df /string.c
parent54fd6de064142633f3bb592b0bd6486d262cd2b2 (diff)
* string.c (rb_str_inspect): fix typo (not 0xFD but 0xFE).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index d55f943a5b..8e494dbb83 100644
--- a/string.c
+++ b/string.c
@@ -4217,7 +4217,7 @@ rb_str_inspect(VALUE str)
const unsigned char *q = (const unsigned char *)p;
if (q[0] == 0xFE && q[1] == 0xFF)
enc = rb_enc_find("UTF-16BE");
- else if (q[0] == 0xFF && q[1] == 0xFD)
+ else if (q[0] == 0xFF && q[1] == 0xFE)
enc = rb_enc_find("UTF-16LE");
else
unicode_p = 0;