From bbef73b2ff1fba2d72d16f5ee582063e6b6e8a1f Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Sat, 22 Nov 2025 21:23:25 +0000 Subject: [DOC] Better multibyte-character data --- doc/string/aref.rdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/string/aref.rdoc b/doc/string/aref.rdoc index bd33c4c050..ee4c3d33d4 100644 --- a/doc/string/aref.rdoc +++ b/doc/string/aref.rdoc @@ -8,7 +8,7 @@ returns the 1-character substring found in self at character offset index: 'hello'[0] # => "h" 'hello'[4] # => "o" 'hello'[5] # => nil - 'тест'[2] # => "с" + 'Привет'[2] # => "и" 'こんにちは'[4] # => "は" With negative integer argument +index+ given, @@ -92,7 +92,7 @@ returns the matching substring of +self+, if found: 'hello'['ell'] # => "ell" 'hello'[''] # => "" 'hello'['nosuch'] # => nil - 'тест'['ес'] # => "ес" + 'Привет'['ив'] # => "ив" 'こんにちは'['んにち'] # => "んにち" Related: see {Converting to New String}[rdoc-ref:String@Converting+to+New+String]. -- cgit v1.2.3