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:
parent
1cf5a31e7a
commit
d3e0bc07e2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue