Ruby - Why string (from ARGV) cant be modified with shovel << (frozen string) in one case but it does can in another case?

后端 未结 0 645
有刺的猬
有刺的猬 2021-02-04 00:53

I have two little ruby programs written in ruby 2.3.7 Im trying to extend strings that are passed from ARGV[].

This case works and extends the string removing last char a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题