Skip to content

Commit e3d16d3

Browse files
[DOC] Tweaks for StringIO#getc (#189)
1 parent 3cef1e0 commit e3d16d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/stringio/getc.rdoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Returns +nil+ if at end-of-stream:
1212

1313
Returns characters, not bytes:
1414

15-
strio = StringIO.new('тест')
16-
strio.getc # => "т"
17-
strio.getc # => "е"
15+
strio = StringIO.new('Привет')
16+
strio.getc # => "П"
17+
strio.getc # => "р"
1818

1919
strio = StringIO.new('こんにちは')
2020
strio.getc # => "こ"
@@ -31,4 +31,4 @@ in other cases that need not be true:
3131
strio.pos = 5 # => 5 # At third byte of second character; returns byte.
3232
strio.getc # => "\x93"
3333

34-
Related: StringIO.getbyte.
34+
Related: #getbyte, #putc, #ungetc.

0 commit comments

Comments
 (0)