Are strings mutable in Ruby?

前端 未结 3 1096
我在风中等你
我在风中等你 2020-12-03 09:55

Are Strings mutable in Ruby? According to the documentation doing

str = \"hello\"
str = str + \" world\"

creates a new string object with

3条回答
提交回复
热议问题