1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

io.c (io_encoding_set): typo fixed

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-01-10 06:44:30 +00:00
parent a4c82312c3
commit f309847177

2
io.c
View file

@ -5627,7 +5627,7 @@ io_encoding_set(rb_io_t *fptr, int argc, VALUE v1, VALUE v2)
fptr->enc = rb_to_encoding(v2);
}
else if (argc == 1) {
if if (NIL_P(v1)) {
if (NIL_P(v1)) {
fptr->enc = 0;
}
else {