summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2025-12-06 23:15:47 -0600
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-12-10 15:13:28 +0900
commit842f91aec09e419481af6358657e06973f2410c2 (patch)
treeb23a287444bd22fd18b37519ffbb522123f62ec2 /doc
parentbbee62abbd26e3bf526dbbfddd17d72b81402a72 (diff)
[ruby/stringio] [DOC] Tweaks for StringIO#getc
(https://github.com/ruby/stringio/pull/189) https://github.com/ruby/stringio/commit/e3d16d30ed
Diffstat (limited to 'doc')
-rw-r--r--doc/stringio/getc.rdoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/stringio/getc.rdoc b/doc/stringio/getc.rdoc
index c021789c91..b2ab46843c 100644
--- a/doc/stringio/getc.rdoc
+++ b/doc/stringio/getc.rdoc
@@ -12,9 +12,9 @@ Returns +nil+ if at end-of-stream:
Returns characters, not bytes:
- strio = StringIO.new('тест')
- strio.getc # => "т"
- strio.getc # => "е"
+ strio = StringIO.new('Привет')
+ strio.getc # => "П"
+ strio.getc # => "р"
strio = StringIO.new('こんにちは')
strio.getc # => "こ"
@@ -31,4 +31,4 @@ in other cases that need not be true:
strio.pos = 5 # => 5 # At third byte of second character; returns byte.
strio.getc # => "\x93"
-Related: StringIO.getbyte.
+Related: #getbyte, #putc, #ungetc.