[DOC] Tweaks for String#b

This commit is contained in:
BurdetteLamar 2025-05-15 14:58:57 -05:00 committed by Peter Zhu
parent 1f09c9fa14
commit a188249616
Notes: git 2025-05-16 16:47:31 +00:00
2 changed files with 3 additions and 1 deletions

View File

@ -12,3 +12,5 @@ the underlying bytes are not modified:
t = s.b # => "\xE4\x82\x95"
t.encoding # => #<Encoding:ASCII-8BIT>
t.bytes # => [228, 130, 149]
Related: see {Converting to New String}[rdoc-ref:String@Converting+to+New+String].

View File

@ -11839,7 +11839,7 @@ rb_str_force_encoding(VALUE str, VALUE enc)
/*
* call-seq:
* b -> string
* b -> new_string
*
* :include: doc/string/b.rdoc
*