Commit 7ef4e543 authored by dearblue's avatar dearblue

Comment out `warn` used in the `Array#fetch` method

I get an error because the current mruby does not have a `Kernel#warn` method.
But the warning itself is useful and I'll just comment it out in case it's implemented in the future.
parent 0d7f5b82
...@@ -325,7 +325,7 @@ class Array ...@@ -325,7 +325,7 @@ class Array
# #
def fetch(n, ifnone=NONE, &block) def fetch(n, ifnone=NONE, &block)
warn "block supersedes default value argument" if !n.nil? && ifnone != NONE && block #warn "block supersedes default value argument" if !n.nil? && ifnone != NONE && block
idx = n idx = n
if idx < 0 if idx < 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment