mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix wrong number of arguments in Array#fetch; fix #4170
This commit is contained in:
@@ -291,7 +291,7 @@ class Array
|
||||
# #=> "100 is out of bounds"
|
||||
#
|
||||
|
||||
def fetch(n=nil, ifnone=NONE, &block)
|
||||
def fetch(n, ifnone=NONE, &block)
|
||||
warn "block supersedes default value argument" if !n.nil? && ifnone != NONE && block
|
||||
|
||||
idx = n
|
||||
|
||||
Reference in New Issue
Block a user