Fix the method name in a comment [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2024-11-14 09:24:00 +09:00
parent 9783cdb0d7
commit e97dcf53a2
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -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