Skip to content

Commit 3328246

Browse files
Nelli Simkovanobu
authored andcommitted
[DOC] Fix typo in String#scrub doc
1 parent 887913e commit 3328246

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/string/scrub.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ With no block given, replaces each invalid sequence
55
with the given +default_replacement_string+
66
(by default, <tt>"�"</tt> for a Unicode encoding, <tt>'?'</tt> otherwise):
77

8-
"foo\x81\x81bar"scrub # => "foo��bar"
8+
"foo\x81\x81bar".scrub # => "foo��bar"
99
"foo\x81\x81bar".force_encoding('US-ASCII').scrub # => "foo??bar"
1010
"foo\x81\x81bar".scrub('xyzzy') # => "fooxyzzyxyzzybar"
1111

0 commit comments

Comments
 (0)