diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/iconv/iconv.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 74d9a5d9f7..bf1528d21a 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -418,14 +418,15 @@ iconv_s_open =begin --- Iconv.iconv(to, from, *strs) Shorthand for - Iconv.new(to, from) {|cd| (strs + nil).collect {|s| cd.iconv(s)}} + Iconv.open(to, from) {|cd| (strs + nil).collect {|s| cd.iconv(s)}} :Parameters :((|to|)), ((|from|)) see ((<Iconv.new>)). :((|strs|)) strings to be converted. :Exceptions - exceptions thrown by ((<Iconv.new>)) and ((<Iconv#iconv>)). + exceptions thrown by ((<Iconv.new>)), ((<Iconv.open>)) and + ((<Iconv#iconv>)). =end */ @@ -723,8 +724,8 @@ Init_iconv _((void)) ensure cd.close end -(2) Invoke ((<Iconv.new>)) with a block. - Iconv.new(to, from) do |cd| +(2) Invoke ((<Iconv.open>)) with a block. + Iconv.open(to, from) do |cd| input.each {|s| output << cd.iconv(s)} output << cd.iconv(nil) end |