Skip to content
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

Put same frozen Range literal if possible #3587

Merged
merged 1 commit into from Oct 2, 2020
Merged

Conversation

ko1
Copy link
Contributor

@ko1 ko1 commented Sep 25, 2020

Range literal is now frozen so we can reuse same Range object if
the begin and the last are Numeric (frozen), such as (1..2).

Range literal is now frozen so we can reuse same Range object if
the begin and the last are Numeric (frozen), such as `(1..2)`.
@ko1 ko1 merged commit 8d76b72 into ruby:master Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant