From f3098471770a3b813a4b5a6680af1374e908798f Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 10 Jan 2008 06:44:30 +0000 Subject: [PATCH] io.c (io_encoding_set): typo fixed git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.c b/io.c index 4b499bc6e6..6ff3abd5d0 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 {