diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2022-01-02 21:47:50 +1300 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2022-01-02 21:47:50 +1300 |
commit | 03d97cc966fe35cd571a5260c01a9f50cbe60b2a (patch) | |
tree | 8ecd0ff05962e64c0d9beb5be13272fa9be7966d /io_buffer.c | |
parent | e7c2d5cc024207dae91c19e9e0d0b1df43ec1b7d (diff) |
Remove UTF-8 from documentation.
Diffstat (limited to 'io_buffer.c')
-rw-r--r-- | io_buffer.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/io_buffer.c b/io_buffer.c index a45621c670..71136d4eb6 100644 --- a/io_buffer.c +++ b/io_buffer.c @@ -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) |