Skip to content

Commit a188249

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Tweaks for String#b
1 parent 1f09c9f commit a188249

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/string/b.rdoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ the underlying bytes are not modified:
1212
t = s.b # => "\xE4\x82\x95"
1313
t.encoding # => #<Encoding:ASCII-8BIT>
1414
t.bytes # => [228, 130, 149]
15+
16+
Related: see {Converting to New String}[rdoc-ref:String@Converting+to+New+String].

string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11839,7 +11839,7 @@ rb_str_force_encoding(VALUE str, VALUE enc)
1183911839

1184011840
/*
1184111841
* call-seq:
11842-
* b -> string
11842+
* b -> new_string
1184311843
*
1184411844
* :include: doc/string/b.rdoc
1184511845
*

0 commit comments

Comments
 (0)