Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suppress "literal string will be frozen in the future" warning (#1019)
* Suppress "literal string will be frozen in the future" warning Before change: ```console $ ruby -W -I lib -e 'require "irb"; IRB.setup(nil); IRB::Irb.new.build_statement("1 + 2")' /Users/zzz/src/github.com/ruby/irb/lib/irb.rb:1135: warning: literal string will be frozen in the future ``` After change: ```console $ ruby -W -I lib -e 'require "irb"; IRB.setup(nil); IRB::Irb.new.build_statement("1 + 2")' ``` * Making build_statement not modify the given argument Because improves readability and code quality. Co-authored-by: tomoya ishida <[email protected]> --------- Co-authored-by: tomoya ishida <[email protected]>
- Loading branch information