From 3328246b91cbf1d69a2ba48dd5b5010490542084 Mon Sep 17 00:00:00 2001 From: Nelli Simkova Date: Fri, 23 Jan 2026 12:31:41 +0300 Subject: [PATCH] [DOC] Fix typo in String#scrub doc --- doc/string/scrub.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, "�" for a Unicode encoding, '?' 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"