Project

General

Profile

Actions

Bug #21215

closed

IRB upto yield self when self is little then end_val

Added by fitmap (Justin Peal) 4 months ago. Updated 4 months ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x64-mingw-ucrt]
[ruby-core:121531]

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 #1

Updated by fitmap (Justin Peal) 4 months ago

  • Description updated (diff)
Actions #2

Updated by mame (Yusuke Endoh) 4 months ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0