Skip to content

Commit b160470

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Tweaks for String#chars
1 parent 14971e7 commit b160470

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

doc/string/chars.rdoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ Returns an array of the characters in +self+:
33
'hello'.chars # => ["h", "e", "l", "l", "o"]
44
'тест'.chars # => ["т", "е", "с", "т"]
55
'こんにちは'.chars # => ["こ", "ん", "に", "ち", "は"]
6+
''.chars # => []
7+
8+
Related: see {Converting to Non-String}[rdoc-ref:String@Converting+to+Non--5CString].

0 commit comments

Comments
 (0)