mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix the method name in a comment [ci skip]
This commit is contained in:
parent
9783cdb0d7
commit
e97dcf53a2
1 changed files with 1 additions and 1 deletions
|
@ -330,7 +330,7 @@ class Integer
|
|||
Primitive.attr! :inline_block, :c_trace
|
||||
|
||||
# When no block is given, return an Enumerator that enumerates from `self` to `to`.
|
||||
# Not using `block_defined?` and `to_enum` to keep them unaffected by redefinitions.
|
||||
# Not using `block_given?` and `to_enum` to keep them unaffected by redefinitions.
|
||||
unless defined?(yield)
|
||||
return Primitive.cexpr! 'SIZED_ENUMERATOR(self, 1, &to, int_downto_size)'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue