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

Remove UTF-8 from documentation.

This commit is contained in:
Samuel Williams 2022-01-02 21:47:50 +13:00
parent e7c2d5cc02
commit 03d97cc966
No known key found for this signature in database
GPG key ID: A0765423A44728FB

View file

@ -1711,7 +1711,6 @@ io_buffer_copy(int argc, VALUE *argv, VALUE self)
* Read a chunk or all of the buffer into a string, in the specified
* +encoding+. If no encoding is provided +Encoding::BINARY+ is used.
*
*
* buffer = IO::Buffer.for('test')
* buffer.get_string
* # => "test"
@ -1720,12 +1719,6 @@ io_buffer_copy(int argc, VALUE *argv, VALUE self)
* buffer.get_string(2, 1)
* # => "s"
*
* buffer = IO::Buffer.for('Руби')
* buffer.get_string(2).then { [_1, _1.encoding] }
* # => ["\xD1\x83\xD0\xB1\xD0\xB8", #<Encoding:ASCII-8BIT>]
* buffer.get_string(2, nil, 'UTF-8').then { [_1, _1.encoding] }
* # => ["уби", #<Encoding:UTF-8>]
*
*/
static VALUE
io_buffer_get_string(int argc, VALUE *argv, VALUE self)