From deba4d32332e41be674ec2d16f48c27cce1efe66 Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Wed, 1 Oct 2025 17:47:51 -0500 Subject: Tweaks for String#replace --- doc/string.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/string.rb b/doc/string.rb index 43386c644c..a5d143cf36 100644 --- a/doc/string.rb +++ b/doc/string.rb @@ -398,7 +398,7 @@ # - #gsub!: Replaces each substring that matches a given pattern with a given replacement string; # returns +self+ if any changes, +nil+ otherwise. # - #succ! (aliased as #next!): Returns +self+ modified to become its own successor. -# - #initialize_copy (aliased as #replace): Returns +self+ with its entire content replaced by a given string. +# - #replace: Returns +self+ with its entire content replaced by a given string. # - #reverse!: Returns +self+ with its characters in reverse order. # - #setbyte: Sets the byte at a given integer offset to a given value; returns the argument. # - #tr!: Replaces specified characters in +self+ with specified replacement characters; -- cgit v1.2.3