diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-08-29 11:20:34 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-08-29 11:23:16 +0900 |
commit | d3e0bc07e2909f1105dcde4febb0e120eaea30b6 (patch) | |
tree | b5298fe46d945a4ab66aafe9360ca3102d9ccf65 /spec/ruby/language/precedence_spec.rb | |
parent | 1cf5a31e7a00c3900bb8bdc358606f66a729d4f7 (diff) |
Fixed a comment [ci skip]
A range literal in conditional expression is turned into a
flip-flop, as a Range object is never falsy and does not make a
sense.
Diffstat (limited to 'spec/ruby/language/precedence_spec.rb')
-rw-r--r-- | spec/ruby/language/precedence_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/language/precedence_spec.rb b/spec/ruby/language/precedence_spec.rb index b122577a75..5a3c2861ce 100644 --- a/spec/ruby/language/precedence_spec.rb +++ b/spec/ruby/language/precedence_spec.rb @@ -300,7 +300,7 @@ describe "Operators" do # Use variables to avoid warnings from = 1 to = 2 - # These are Range instances, not flip-flop + # These are flip-flop, not Range instances (from..to ? 3 : 4).should == 3 (from...to ? 3 : 4).should == 3 end |