Project

General

Profile

Bug #21215

Updated by fitmap (Justin Peal) 4 months ago

irb(main):001:0> 1.upto(0) { |k| p k }     => 1 
 1 
 irb(main):002:0> 0.downto(1) { |k| p k }     => 0 
 0 
 Save these statements to script and run the script, no output. 

 ====== 

 Sorry, It is not a bug, Just the IRB Echo of return value of upto or downto function. 
 Please close this issue.

Back