summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-10 06:44:30 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-10 06:44:30 +0000
commit094c201ddbb6e15d5685ba4612c10240ed25327a (patch)
tree2ae1716492e8c6355f047a272cbd90ce7d97df88 /io.c
parent197cc2b66338f0b2b215c58a5f4ad7edea8332df (diff)
downloadruby-094c201ddbb6e15d5685ba4612c10240ed25327a.tar.gz
ruby-094c201ddbb6e15d5685ba4612c10240ed25327a.tar.xz
ruby-094c201ddbb6e15d5685ba4612c10240ed25327a.zip
io.c (io_encoding_set): typo fixed
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 4b499bc6e..6ff3abd5d 100644
--- a/io.c
+++ b/io.c
@@ -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 {