Created
May 6, 2017 23:28
-
-
Save JunichiIto/54f1d0dbb928566f5083b6caf9d8a2b2 to your computer and use it in GitHub Desktop.
Syntax error is gone in Ruby 2.4?
This file contains hidden or 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
➜ ~ ruby -v | |
ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-darwin16] | |
➜ ~ irb | |
irb(main):001:0> [].delete 1 { 'NG' } | |
SyntaxError: (irb):1: syntax error, unexpected '{', expecting end-of-input | |
[].delete 1 { 'NG' } | |
^ | |
from /Users/jit/.rbenv/versions/2.3.4/bin/irb:11:in `<main>' | |
irb(main):002:0> exit | |
➜ ~ rbenv shell 2.4.1 | |
➜ ~ irb | |
irb(main):001:0> [].delete 1 { 'NG' } | |
=> "NG" | |
irb(main):002:0> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment