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

Use String#+@ before mutating the result of Symbol#to_s #37303

Merged
merged 1 commit into from
Sep 26, 2019

Commits on Sep 26, 2019

  1. Use String#+@ before mutating the result of Symbol#to_s

    * String#+@ is available since Ruby 2.3.
    * See the upstream Ruby change making Symbol#to_s return a frozen String
      for efficiency: ruby/ruby#2437
    eregon committed Sep 26, 2019
    Configuration menu
    Copy the full SHA
    207974e View commit details
    Browse the repository at this point in the history