diff options
| author | BurdetteLamar <burdettelamar@yahoo.com> | 2025-11-22 21:23:25 +0000 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2025-12-05 19:03:22 -0800 |
| commit | bbef73b2ff1fba2d72d16f5ee582063e6b6e8a1f (patch) | |
| tree | c369652373c49fd1bf8115a3650110d2d3ef1669 | |
| parent | 734dab5ec885107b9d1da81d5d071927e59fddee (diff) | |
[DOC] Better multibyte-character data
| -rw-r--r-- | doc/string/aref.rdoc | 4 |
1 files 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]. |
