Created
August 4, 2015 14:07
-
-
Save rgarner/96a630b13a4a4fe64276 to your computer and use it in GitHub Desktop.
New symbol behaviour in Ruby 2.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ ~ rbenv shell 2.1.5 | |
➜ ~ ruby -e '{ "hello": "world" }' | |
-e:1: syntax error, unexpected ':', expecting => | |
{ "hello": "world" } | |
^ | |
-e:1: syntax error, unexpected '}', expecting end-of-input | |
➜ ~ rbenv shell 2.2.0 | |
➜ ~ ruby -e '{ "hello": "world" }' | |
➜ ~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment