diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-06-17 23:27:16 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-17 23:27:16 +0900 |
| commit | 7f05f7378d3dea53796338346970faa5594aa8ed (patch) | |
| tree | 7f201c56dc69b7596afda0723b955b3978e3ae74 /string.rb | |
| parent | 2790bddda6e8ad49298de8bc71921f39e7390f26 (diff) | |
Reuse an interned string
Repeating to intern the same string is just redundant, as interned
strings for the same content are always the same object until it gets
collected.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6034
Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'string.rb')
0 files changed, 0 insertions, 0 deletions
