Skip to content

Commit cccb985

Browse files
authored
Make mutated string in yamatanooroti explicitly mutable (#662)
This avoids the frozen literal warning in Ruby 3.4.
1 parent 9685db5 commit cccb985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/reline/yamatanooroti/multiline_repl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ opt.on('--autocomplete-long') {
183183
opt.on('--autocomplete-super-long') {
184184
Reline.autocompletion = true
185185
Reline.completion_proc = lambda { |target, preposing = nil, postposing = nil|
186-
c = 'A'
186+
c = +'A'
187187
2000.times.map{ s = "Str_#{c}"; c.succ!; s }.select{ |c| c.start_with?(target) }
188188
}
189189
}

0 commit comments

Comments
 (0)