Skip to content

[skip-ci] Clarification for dup vs clone docs #3192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 30, 2020

Conversation

esparta
Copy link
Contributor

@esparta esparta commented Jun 7, 2020

Both clone & dup returns a new object when executed. In the documentation looks like they are returning the same object cloned or dup'ed which is true for method as extend, but not for the above mentioned.

Both clone & dup returns a new object when executed
on the documentation looks like they are returning the
same object cloned or dup'ed which is true for method
as extend, but not for the above mentioned.
@hsbt hsbt merged commit cfbae7d into ruby:master Jul 30, 2020
@esparta esparta deleted the clone_dup_returns_new_objects branch July 30, 2020 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants