Commit b32e438
committed
Don't mutate a string literal in main code sample
I know this is still being debated, but as of the current
version of Ruby, the first code sample does emit a deprecation
warning (hidden by default but still).
I think it's would be better to not mutate a string literal.1 parent 898c68a commit b32e438
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments