1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix rdoc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2009-06-13 09:59:46 +00:00
parent 3bfa955a8c
commit 6066cfadab

View file

@ -3379,17 +3379,17 @@ econv_result_to_symbol(rb_econv_result_t res)
* *
* example: * example:
* ec = Encoding::Converter.new("UTF-8", "UTF-16BE") * ec = Encoding::Converter.new("UTF-8", "UTF-16BE")
* ret = ec.primitive_convert(src="pi", dst="", 100) * ret = ec.primitive_convert(src="pi", dst="", nil, 100)
* p [ret, src, dst] #=> [:finished, "", "\x00p\x00i"] * p [ret, src, dst] #=> [:finished, "", "\x00p\x00i"]
* *
* ec = Encoding::Converter.new("UTF-8", "UTF-16BE") * ec = Encoding::Converter.new("UTF-8", "UTF-16BE")
* ret = ec.primitive_convert(src="pi", dst="", 1) * ret = ec.primitive_convert(src="pi", dst="", nil, 1)
* p [ret, src, dst] #=> [:destination_buffer_full, "i", "\x00"] * p [ret, src, dst] #=> [:destination_buffer_full, "i", "\x00"]
* ret = ec.primitive_convert(src, dst="", 1) * ret = ec.primitive_convert(src, dst="", nil, 1)
* p [ret, src, dst] #=> [:destination_buffer_full, "", "p"] * p [ret, src, dst] #=> [:destination_buffer_full, "", "p"]
* ret = ec.primitive_convert(src, dst="", 1) * ret = ec.primitive_convert(src, dst="", nil, 1)
* p [ret, src, dst] #=> [:destination_buffer_full, "", "\x00"] * p [ret, src, dst] #=> [:destination_buffer_full, "", "\x00"]
* ret = ec.primitive_convert(src, dst="", 1) * ret = ec.primitive_convert(src, dst="", nil, 1)
* p [ret, src, dst] #=> [:finished, "", "i"] * p [ret, src, dst] #=> [:finished, "", "i"]
* *
*/ */