diff --git a/ext/nkf/lib/kconv.rb b/ext/nkf/lib/kconv.rb
index d6e394914..a3594074f 100644
--- a/ext/nkf/lib/kconv.rb
+++ b/ext/nkf/lib/kconv.rb
@@ -51,8 +51,8 @@ module Kconv
# call-seq:
# Kconv.kconv(str, to_enc, from_enc=nil)
#
- # Convert str
to out_code.
- # out_code
and in_code
are given as constants of Kconv.
+ # Convert str
to to_enc
.
+ # to_enc
and from_enc
are given as constants of Kconv or Encoding objects.
def kconv(str, to_enc, from_enc=nil)
opt = ''
opt += ' --ic=' + from_enc.to_s if from_enc
@@ -199,8 +199,8 @@ class String
# call-seq:
# String#kconv(to_enc, from_enc)
#
- # Convert self
to out_code.
- # out_code
and in_code
are given as constants of Kconv.
+ # Convert self
to to_enc
.
+ # to_enc
and from_enc
are given as constants of Kconv or Encoding objects.
def kconv(to_enc, from_enc=nil)
from_enc = self.encoding if !from_enc && self.encoding != Encoding.list[0]
Kconv::kconv(self, to_enc, from_enc)