diff options
author | Stan Lo <[email protected]> | 2024-03-23 22:50:51 +0000 |
---|---|---|
committer | git <[email protected]> | 2024-03-23 22:50:57 +0000 |
commit | f46b77596d9b88e603765c0980667a86c62e2b04 (patch) | |
tree | 1d33bff6f893079cde32f7baaf8f03dd0f5d2526 /test/reline | |
parent | 8265a7531fba008eac777682124c2fb1b55e724c (diff) |
[ruby/reline] Make mutated string in yamatanooroti explicitly
mutable
(https://github.com/ruby/reline/pull/662)
This avoids the frozen literal warning in Ruby 3.4.
https://github.com/ruby/reline/commit/cccb985804
Diffstat (limited to 'test/reline')
-rwxr-xr-x | test/reline/yamatanooroti/multiline_repl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/reline/yamatanooroti/multiline_repl b/test/reline/yamatanooroti/multiline_repl index 5205e1f5d9..66bcf51e1a 100755 --- a/test/reline/yamatanooroti/multiline_repl +++ b/test/reline/yamatanooroti/multiline_repl @@ -183,7 +183,7 @@ opt.on('--autocomplete-long') { opt.on('--autocomplete-super-long') { Reline.autocompletion = true Reline.completion_proc = lambda { |target, preposing = nil, postposing = nil| - c = 'A' + c = +'A' 2000.times.map{ s = "Str_#{c}"; c.succ!; s }.select{ |c| c.start_with?(target) } } } |