mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[ci skip] Fix typo in deep_dup docs
This commit is contained in:
parent
f50d953ff6
commit
dfedaf3795
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ NOTE: Defined in `active_support/core_ext/object/duplicable.rb`.
|
|||
|
||||
### `deep_dup`
|
||||
|
||||
The `deep_dup` method returns deep copy of a given object. Normally, when you `dup` an object that contains other objects, Ruby does not `dup` them, so it creates a shallow copy of the object. If you have an array with a string, for example, it will look like this:
|
||||
The `deep_dup` method returns a deep copy of a given object. Normally, when you `dup` an object that contains other objects, Ruby does not `dup` them, so it creates a shallow copy of the object. If you have an array with a string, for example, it will look like this:
|
||||
|
||||
```ruby
|
||||
array = ['string']
|
||||
|
|
Loading…
Reference in a new issue