Actions
Bug #21215
closedIRB upto yield self when self is little then end_val
Bug #21215:
IRB 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.
Updated by fitmap (Justin Peal) 7 months ago
- Description updated (diff)
Updated by mame (Yusuke Endoh) 7 months ago
- Status changed from Open to Closed
Actions