diff options
| author | Burdette Lamar <BurdetteLamar@Yahoo.com> | 2025-10-01 17:47:51 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-01 22:47:51 +0000 |
| commit | deba4d32332e41be674ec2d16f48c27cce1efe66 (patch) | |
| tree | 7b5679f809759753c96a227e2243b8395f4280d2 /doc | |
| parent | fb3b895f3f3c7bd1921c2db98e88a11dfcf60feb (diff) | |
Tweaks for String#replace
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/string.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
