1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.
This commit is contained in:
Nobuyoshi Nakada 2019-08-29 11:20:34 +09:00
parent 1cf5a31e7a
commit d3e0bc07e2
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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