mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Tweaks for String#bytes
This commit is contained in:
parent
b284987651
commit
c351c3d065
1 changed files with 2 additions and 0 deletions
|
@ -4,3 +4,5 @@ Returns an array of the bytes in +self+:
|
|||
'тест'.bytes # => [209, 130, 208, 181, 209, 129, 209, 130]
|
||||
'こんにちは'.bytes
|
||||
# => [227, 129, 147, 227, 130, 147, 227, 129, 171, 227, 129, 161, 227, 129, 175]
|
||||
|
||||
Related: see {Converting to Non-String}[rdoc-ref:String@Converting+to+Non--5CString].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue