[DOC] Tweaks for String#bytes

This commit is contained in:
Burdette Lamar 2025-06-24 11:28:17 -05:00 committed by GitHub
parent b284987651
commit c351c3d065
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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].