summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-array-ext
diff options
context:
space:
mode:
authordearblue <[email protected]>2021-02-20 18:19:00 +0900
committerdearblue <[email protected]>2021-02-20 18:19:00 +0900
commit7ef4e54370abc04064e0a3448eecbc2d80d27d45 (patch)
tree54d7f35f5ecc87d38f839353d74848c4ae56027d /mrbgems/mruby-array-ext
parent0d7f5b8216b88a37407c8885a8fc523e38bff616 (diff)
downloadmruby-7ef4e54370abc04064e0a3448eecbc2d80d27d45.tar.gz
mruby-7ef4e54370abc04064e0a3448eecbc2d80d27d45.zip
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.
Diffstat (limited to 'mrbgems/mruby-array-ext')
-rw-r--r--mrbgems/mruby-array-ext/mrblib/array.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-array-ext/mrblib/array.rb b/mrbgems/mruby-array-ext/mrblib/array.rb
index 25669a9ab..0195a6970 100644
--- a/mrbgems/mruby-array-ext/mrblib/array.rb
+++ b/mrbgems/mruby-array-ext/mrblib/array.rb
@@ -325,7 +325,7 @@ class Array
#
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
if idx < 0