Mega Code Archive
Categories
/
Ruby
/
String
Cant modify frozen string
greet = "Hello, myValue!" greet.freeze greet.concat("!") # => TypeError: can't modify frozen string