summaryrefslogtreecommitdiff
path: root/numeric.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2024-11-13 11:46:29 -0800
committerTakashi Kokubun <[email protected]>2024-11-13 12:27:26 -0800
commit907146973a7aeb85d1748cb427e87d914d86a3b9 ()
treebb6186abf375985daa67202c23dc6b8441366caa /numeric.rb
parent01db456196e17eb067f70eb1d4fceba143a51c01 (diff)
Add a comment about Integer#downto Enumerator
Notes: Merged: https://.com/ruby/ruby/pull/12074
-rw-r--r--numeric.rb2
1 files changed, 2 insertions, 0 deletions
@@ -329,6 +329,8 @@ class Integer
def downto(to) # :nodoc:
Primitive.attr! :inline_block, :c_trace
unless defined?(yield)
return Primitive.cexpr! 'SIZED_ENUMERATOR(self, 1, &to, int_downto_size)'
end