1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] fix typo in IRB::Irb#convert_invalid_byte_sequence

https://github.com/ruby/irb/commit/d09d3c3d68
This commit is contained in:
Nobuhiro IMAI 2021-01-06 19:01:08 +09:00 committed by aycabta
parent 55e52c19e7
commit 4bb683a570

View file

@ -586,7 +586,7 @@ module IRB
ret = conv.primitive_convert(str, dst)
case ret
when :invalid_byte_sequence
conf.insert_output(conf.primitive_errinfo[3].dump[1..-2])
conv.insert_output(conf.primitive_errinfo[3].dump[1..-2])
redo
when :undefined_conversion
c = conv.primitive_errinfo[3].dup.force_encoding(conv.primitive_errinfo[1])