Actions
Bug #21215
closedIRB upto yield self when self is little then end_val
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x64-mingw-ucrt]
Description
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.
Actions
Like0
Like0Like0