mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #19130 from yui-knk/fix/active_support_core_extensions2
[ci skip] Fix to comment
This commit is contained in:
commit
9b4d8b8fbe
1 changed files with 1 additions and 1 deletions
|
@ -1237,7 +1237,7 @@ Calling `dup` or `clone` on safe strings yields safe strings.
|
|||
The method `remove` will remove all occurrences of the pattern:
|
||||
|
||||
```ruby
|
||||
"Hello World".remove(/Hello /) => "World"
|
||||
"Hello World".remove(/Hello /) # => "World"
|
||||
```
|
||||
|
||||
There's also the destructive version `String#remove!`.
|
||||
|
|
Loading…
Reference in a new issue