summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNelli Simkova <nelli.simkova@fccho-moscow.ru>2026-01-23 12:31:41 +0300
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2026-01-24 12:38:15 +0900
commit3328246b91cbf1d69a2ba48dd5b5010490542084 (patch)
tree7095cb4f6d832cea7906533614d306e6ab93eba7
parent887913efc0fecdcfd67c86d52d1d92ad79c23fac (diff)
[DOC] Fix typo in String#scrub doc
-rw-r--r--doc/string/scrub.rdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/string/scrub.rdoc b/doc/string/scrub.rdoc
index 5ace376cdb..314b28c465 100644
--- a/doc/string/scrub.rdoc
+++ b/doc/string/scrub.rdoc
@@ -5,7 +5,7 @@ With no block given, replaces each invalid sequence
with the given +default_replacement_string+
(by default, <tt>"�"</tt> for a Unicode encoding, <tt>'?'</tt> otherwise):
- "foo\x81\x81bar"scrub # => "foo��bar"
+ "foo\x81\x81bar".scrub # => "foo��bar"
"foo\x81\x81bar".force_encoding('US-ASCII').scrub # => "foo??bar"
"foo\x81\x81bar".scrub('xyzzy') # => "fooxyzzyxyzzybar"