Closed
Description
https://ruby-doc.org/core-2.5.1/String.html#method-i-5B-5D-3D
say = "I love Ruby"
say['love'] = "*love*"
say
expected
I *love* Ruby
actual
NoMethodError: undefined method `[]=' for "I love Ruby"
this chunk of code is notably shown on ruby homepage
Metadata
Metadata
Assignees
Labels
No labels