mirror of https://github.com/rails/rails
Merge pull request #19130 from yui-knk/fix/active_support_core_extensions2
[ci skip] Fix to comment
This commit is contained in:
commit
9b4d8b8fbe
|
@ -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 New Issue