Permalink
Browse files

fix typo in kconv

  • Loading branch information...
Watson1978 committed Apr 4, 2012
1 parent 0d6ba37 commit 6aa2444949a15330fe450058d0c3d33f2a43c239
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/nkf/lib/kconv.rb
View
@@ -202,7 +202,7 @@ class String
# Convert <code>self</code> to out_code.
# <code>out_code</code> and <code>in_code</code> are given as constants of Kconv.
def kconv(to_enc, from_enc=nil)
- form_enc = self.encoding if !from_enc && self.encoding != Encoding.list[0]
+ from_enc = self.encoding if !from_enc && self.encoding != Encoding.list[0]
Kconv::kconv(self, to_enc, from_enc)
end

0 comments on commit 6aa2444

Please sign in to comment.