summaryrefslogtreecommitdiff
path: root/numeric.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-11-14 09:24:00 +0900
committerNobuyoshi Nakada <[email protected]>2024-11-14 09:24:00 +0900
commite97dcf53a2daea113eed4823dced90998d172684 (patch)
treeca2a5223cc76841f26ea03424f3c5cf46ef62f6e /numeric.rb
parent9783cdb0d7d13e5e35237230ab224b2dcda6b903 (diff)
Fix the method name in a comment [ci skip]
Diffstat (limited to 'numeric.rb')
-rw-r--r--numeric.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.rb b/numeric.rb
index 6b784a877e..27e9951fd3 100644
--- a/numeric.rb
+++ b/numeric.rb
@@ -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